<NME> wsgi.py
<BEF> """
WSGI config for test_project 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/
"""

from __future__ import unicode_literals

import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings")

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

<MSG> Merge pull request #1333 from fyfe/upgrade-django

Upgrade Django (Django-1.10 no longer supported)
<DFF> @@ -4,13 +4,15 @@ WSGI config for test_project 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.11/howto/deployment/wsgi/
 """
 
 from __future__ import unicode_literals
 
 import os
-os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings")
 
 from django.core.wsgi import get_wsgi_application
+
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings")
+
 application = get_wsgi_application()

Merge pull request #1333 from fyfe/upgrade-django