<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div> <br> <div id="bloop_sign_1507241114517550080" class="bloop_sign"></div> <br><p class="airmail_on">On 5 October 2017 at 21:55:12, Marco Santamaria (<a href="mailto:marco.santamaria@gmail.com">marco.santamaria@gmail.com</a>) wrote:</p> <div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span><div><div class="gmail_extra" style="color:rgb(0,0,0);font-family:helvetica;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div class="gmail_quote"><div>Come scritto da Paolo prima si usava django-celery per avere i risultati su database e nell'admin, ora è meglio usare<span class="Apple-converted-space"> </span><a href="http://docs.celeryproject.org/en/latest/django/first-steps-with-django.html#django-celery-results-using-the-django-orm-cache-as-a-result-backend">django-celery-results</a><span class="Apple-converted-space"> </span>e usare i settings:<code><br></code><pre class="gmail-code gmail-highlight"><code><span id="gmail-LC307" class="gmail-line"><span class="gmail-n">INSTALLED_APPS</span> <span class="gmail-o">=</span> <span class="gmail-p">(</span></span>
<span id="gmail-LC308" class="gmail-line"> <span class="gmail-s">...</span></span><span id="gmail-LC326" class="gmail-line"></span>
<span id="gmail-LC327" class="gmail-line"> <span class="gmail-s">'django_celery_results'</span><span class="gmail-p">,</span></span>
<span id="gmail-LC328" class="gmail-line"> <span class="gmail-s">...</span></span>
<span id="gmail-LC329" class="gmail-line"><span class="gmail-p">)</span></span></code></pre><pre class="gmail-code gmail-highlight"><code><span id="gmail-LC948" class="gmail-line"><span class="gmail-n">CELERY_RESULT_BACKEND</span> <span class="gmail-o">=</span> <span class="gmail-s">'django-db'<br></span></span></code><code><span id="gmail-LC329" class="gmail-line"></span></code></pre></div></div><br clear="all"></div><div class="gmail_extra" style="color:rgb(0,0,0);font-family:helvetica;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Nei progetti più nuovi ho usato questa configurazione senza problemi.</div></div></span></blockquote></div><p><br></p><p>Grazie. L’ho provata, ma peccato che non salvi i nomi dei tasks, ma solo l’id</p><p><br></p><p>—</p><p>Karim</p><div></div></body></html>