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

前端 未结 14 800
耶瑟儿~
耶瑟儿~ 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:22

    I had a similar (the same?) isssue when upgrading to Django 1.7. In may case, it was enough to update the wsgi file: replace

    import django.core.handlers.wsgi
    application = django.core.handlers.wsgi.WSGIHandler()
    

    with

    from django.core.wsgi import get_wsgi_application
    application = get_wsgi_application()
    

提交回复
热议问题