Skip to content

Commit

Permalink
Remove special check for Django<1.7, fix for zappa#1158 (zappa#1159)
Browse files Browse the repository at this point in the history
Remove special check for Django<1.7
  • Loading branch information
carlkibler authored and Ian288 committed Jul 11, 2023
1 parent 45826c2 commit 25d7faf
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions zappa/ext/django_zappa.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,4 @@ def get_django_wsgi(settings_module):

os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module)

import django

if django.VERSION[0] <= 1 and django.VERSION[1] < 7:
# call django.setup only for django <1.7.0
# (because setup already in get_wsgi_application since that)
# https://github.com/django/django/commit/80d74097b4bd7186ad99b6d41d0ed90347a39b21
django.setup()

return get_wsgi_application()

0 comments on commit 25d7faf

Please sign in to comment.