Skip to content

Commit

Permalink
Simplify import of django.core.wsgi.get_wsgi_application
Browse files Browse the repository at this point in the history
This has been available since Django 1.4. The import guard is no longer necessary.
  • Loading branch information
brianhelba committed Oct 25, 2021
1 parent df51535 commit ec12828
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions configurations/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@

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()

0 comments on commit ec12828

Please sign in to comment.