django-configurations/configurations/wsgi.py

15 lines
339 B
Python
Raw Normal View History

2012-07-21 13:56:04 +00:00
from . import importer
importer.install()
try:
from django.core.wsgi import get_wsgi_application
except ImportError: # pragma: no cover
from django.core.handlers.wsgi import WSGIHandler
def get_wsgi_application(): # noqa
return WSGIHandler()
# this is just for the crazy ones
application = get_wsgi_application()