AppRegistryNotReady: The translation infrastructure cannot be initialized before the apps registry is ready. Check that you don't make non-lazy gettext calls at import time.
解决办法:
将
application = django.core.handlers.wsgi.WSGIHandler()
换成如下
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()