summaryrefslogtreecommitdiff
path: root/tests/django_test_app/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/django_test_app/__init__.py')
-rw-r--r--tests/django_test_app/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/django_test_app/__init__.py b/tests/django_test_app/__init__.py
index 1c692b0..2cc3e27 100644
--- a/tests/django_test_app/__init__.py
+++ b/tests/django_test_app/__init__.py
@@ -3,6 +3,7 @@
# This code is distributed under the two-clause BSD License.
try: # pragma: no cover
+ import django
from django.conf import settings
django_loaded = True
except ImportError: # pragma: no cover
@@ -22,3 +23,7 @@ if django_loaded: # pragma: no cover
'tests.django_test_app',
]
)
+ # https://docs.djangoproject.com/en/dev/releases/1.7/#app-loading-changes
+ if django.VERSION >= (1, 7):
+ from django.apps import apps
+ apps.populate(settings.INSTALLED_APPS)