Delete ENV(DJANGO_VERSION).
Note: mandatory check (NEED_CHECK) was skipped
@@ -72,13 +72,11 @@ def main():
# We should initialize Django before importing any applications
if os.getenv('DJANGO_SETTINGS_MODULE'):
- from library.python.django.patch import patch, Version
- version = os.getenv('DJANGO_VERSION')
- if version == '1_9':
- patch(version=Version.V_1_9)
- elif version == '1_11':
- patch(version=Version.V_1_11)
+ try:
import django
+ except ImportError:
+ pass
+ else:
django.setup()
try:
