diff --git a/testproject/testproject/wsgi.py b/testproject/testproject/wsgi.py --- a/testproject/testproject/wsgi.py +++ b/testproject/testproject/wsgi.py @@ -24,11 +24,13 @@ WSGI config for testproject project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see -https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/ +https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os + +from django.core.wsgi import get_wsgi_application + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproject.settings") -from django.core.wsgi import get_wsgi_application application = get_wsgi_application()