Files
2017-03-16 12:56:23 -04:00

26 lines
699 B
Python

"""
WSGI config for {{ project_name }} 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
from werkzeug.wsgi import DispatcherMiddleware
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings")
application = get_wsgi_application()
application = DjangoWhiteNoise(application)
from .frontend import app as frontend
application = DispatcherMiddleware(frontend, {
'/admin': application,
'/dj-static': application,
})