AppRegistryNotReady: The translation infrastructure cannot be initialized

后端 未结 4 959
我在风中等你
我在风中等你 2021-02-12 08:55

When I try to access to my app, I\'m getting the following error.

AppRegistryNotReady: The translation infrastructure cannot be initialized before the a

4条回答
  •  遥遥无期
    2021-02-12 09:23

    I faced the same error. Following worked for me. In your wsgi file change the last line to :

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

    This have been changed since Django 1.6 to newer version. Here is the post that helped to deploy the django app.

    If you want to use Nginx as webserver to deploy django app follow this post.

提交回复
热议问题