Simplify import of django.core.wsgi.get_wsgi_application

This has been available since Django 1.4. The import guard is no longer necessary.
This commit is contained in:
Brian Helba 2021-10-25 09:52:21 -04:00
parent df51535afc
commit ec12828877

View file

@ -2,13 +2,7 @@ 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()
from django.core.wsgi import get_wsgi_application # noqa: E402
# this is just for the crazy ones
application = get_wsgi_application()