<div dir="ltr">Il giorno 4 ottobre 2017 11:28, Karim <span dir="ltr"><<a href="mailto:lemieliste@gmail.com" target="_blank">lemieliste@gmail.com</a>></span> ha scritto:<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">Voi come fate? Ho a disposizione anche un db server Postgres quindi pensavo di usare quello per i risultati.</div></blockquote><div><br></div><div>Come scritto da Paolo prima si usava django-celery per avere i risultati su database e nell'admin, ora è meglio usare <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> 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 class="gmail-p"></span></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 class="gmail-p"></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 class="gmail-p"></span></span></code></pre></div></div><br clear="all"></div><div class="gmail_extra">Nei progetti più nuovi ho usato questa configurazione senza problemi.<br><br></div><div class="gmail_extra">Marco<br></div><div class="gmail_extra">-- <br><div class="gmail_signature"><div dir="ltr"><span style="font-family:monospace,monospace"></span><span style="font-family:monospace,monospace">|_|0|_|</span><br><span style="font-family:monospace,monospace"></span><span style="font-family:monospace,monospace"></span><div><span style="font-family:monospace,monospace">|_|_|0|<br>|0|0|0|<br><br></span></div></div></div>
</div></div>