summaryrefslogtreecommitdiffstats
path: root/res/res/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'res/res/settings.py')
-rw-r--r--res/res/settings.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/res/res/settings.py b/res/res/settings.py
index 8884481..d5e487d 100644
--- a/res/res/settings.py
+++ b/res/res/settings.py
@@ -16,7 +16,7 @@ import os
import sys
import platform
-import redisco
+import res.pub.redisco
from res.pub.config.config import REDIS_HOST, REDIS_PORT, REDIS_PASSWD
from res.pub.config.config import DB_NAME, DB_IP, DB_USER, DB_PASSWD, DB_PORT
@@ -54,16 +54,15 @@ INSTALLED_APPS = [
'drf_yasg',
]
-MIDDLEWARE_CLASSES = [
+MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
- 'res.middleware.LogContextMiddleware',
+ 'res.middleware.LogContextMiddleware'
]
ROOT_URLCONF = 'res.urls'
@@ -115,7 +114,7 @@ DATABASES = {
},
}
-redisco.connection_setup(host=REDIS_HOST, port=REDIS_PORT, password=REDIS_PASSWD, db=0)
+res.pub.redisco.connection_setup(host=REDIS_HOST, port=REDIS_PORT, password=REDIS_PASSWD, db=0)
# CACHE_BACKEND = 'redis_cache.cache://%s@%s:%s' % (REDIS_PASSWD, REDIS_HOST, REDIS_PORT)
TIME_ZONE = 'UTC'