The translation infrastructure cannot be initialized before the apps registry is ready
在nginx+uwsgi环境下运行django时,按照古老的教程来写出现了错误,错误出现在wsgi.py中,做如下修改:
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()而不是之前的WSGIHandler
本文介绍在nginx+uwsgi环境下运行Django应用时出现的初始化错误,并提供了一种有效的解决方案,即修改wsgi.py文件中的配置。

被折叠的 条评论
为什么被折叠?



