Django 1.7 upgrade error: AppRegistryNotReady: Apps aren't loaded yet

前端 未结 14 787
耶瑟儿~
耶瑟儿~ 2020-12-08 00:13

I am trying to upgrade a project from Django 1.6 to 1.7. I get the following error:

[Thu Oct 09 14:16:41 2014] [error] [client 95.79.172.156] mod_wsgi (pid=1         


        
14条回答
  •  一向
    一向 (楼主)
    2020-12-08 00:43

    I was looking through all these thread to get celery working on windows (with this particular error message) and I just want to emphasize putting

    import django
    django.setup()
    

    at the top of your tasks.py file, this is finally what got it working for me.

提交回复
热议问题