原文:Python [解決方法] error: Requested setting INSTALLED_APPS, but settings are not configured

https: blog.csdn.net zjiang article details ...

2018-07-28 18:57 0 2723 推薦指數:

查看詳情

celery開啟worker報錯django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either

其實挺簡單的問題,但花了自己一個下午來解決,先是瀏覽各種博客,無果;沒辦法,然后去看celery官方文檔,無果,近乎絕望,最后仔細看代碼,找到問題所在(如下),自學狗這效率。。。。。。 下面是自己task.py中的代碼 當使用celery ...

Thu Jun 27 04:09:00 CST 2019 0 2127
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM