Skip to content

Commit

Permalink
Merge 3ca39a8 into 49ce315
Browse files Browse the repository at this point in the history
  • Loading branch information
gutomaia committed Sep 22, 2016
2 parents 49ce315 + 3ca39a8 commit 85e6e9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion architect/orms/django/__init__.py
@@ -1,9 +1,13 @@
def init():
import os
from distutils.version import StrictVersion

if 'DJANGO_SETTINGS_MODULE' in os.environ:
try:
import django
django.setup()
if StrictVersion(django.get_version()) < StrictVersion('1.7.0'):
from django.conf import settings
else:
django.setup()
except AttributeError:
pass

0 comments on commit 85e6e9e

Please sign in to comment.