From 25d7faf606dcfbe691839fb72e734db369b5eaae Mon Sep 17 00:00:00 2001 From: Carl Kibler Date: Tue, 25 Oct 2022 16:53:29 -0600 Subject: [PATCH] Remove special check for Django<1.7, fix for #1158 (#1159) Remove special check for Django<1.7 --- zappa/ext/django_zappa.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/zappa/ext/django_zappa.py b/zappa/ext/django_zappa.py index 31c0dd3cc..dc5a480e4 100644 --- a/zappa/ext/django_zappa.py +++ b/zappa/ext/django_zappa.py @@ -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()