From 7b80173efc0d4e47a9e860746cdf57553a98f1c4 Mon Sep 17 00:00:00 2001 From: CM Lubinski Date: Tue, 8 Sep 2015 16:06:43 +0000 Subject: [PATCH] Remove warnings when starting/testing the app --- regcore/db/__init__.py | 3 +-- regcore/settings/base.py | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/regcore/db/__init__.py b/regcore/db/__init__.py index 3c67457..26e0e7c 100644 --- a/regcore/db/__init__.py +++ b/regcore/db/__init__.py @@ -3,10 +3,9 @@ the associated backend class instead (e.g. for Django, elastic search, or the splitter backend).""" -import sys +from importlib import import_module from django.conf import settings -from django.utils.importlib import import_module def _select(key): diff --git a/regcore/settings/base.py b/regcore/settings/base.py index 23a1edc..3df60ce 100644 --- a/regcore/settings/base.py +++ b/regcore/settings/base.py @@ -11,6 +11,7 @@ 'regcore_read', 'regcore_write', ] +MIDDLEWARE_CLASSES = [] SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', get_random_string(50))