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

前端 未结 14 772
耶瑟儿~
耶瑟儿~ 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.

    0 讨论(0)
  • 2020-12-08 00:46

    I got this error when I tried to import models from the app's __init__.py, which is not possible.

    0 讨论(0)
提交回复
热议问题