原文: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