summaryrefslogtreecommitdiffstats
path: root/vio
diff options
context:
space:
mode:
Diffstat (limited to 'vio')
-rw-r--r--vio/requirements.txt3
-rw-r--r--vio/vio/settings.py14
2 files changed, 2 insertions, 15 deletions
diff --git a/vio/requirements.txt b/vio/requirements.txt
index 97f6b0b..fba25ad 100644
--- a/vio/requirements.txt
+++ b/vio/requirements.txt
@@ -2,9 +2,6 @@
Django==1.9.6
djangorestframework==3.3.3
-# for access MySQL
-MySQL-python==1.2.5
-
# redis cache
redis==2.10.5
diff --git a/vio/vio/settings.py b/vio/vio/settings.py
index ba8c5a1..9a95094 100644
--- a/vio/vio/settings.py
+++ b/vio/vio/settings.py
@@ -13,10 +13,6 @@
import os
import sys
-import redisco
-
-from vio.pub.config.config import REDIS_HOST, REDIS_PORT, REDIS_PASSWD
-from vio.pub.config.config import DB_NAME, DB_IP, DB_USER, DB_PASSWD, DB_PORT
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@@ -74,17 +70,11 @@ REST_FRAMEWORK = {
DATABASES = {
'default': {
- 'ENGINE': 'django.db.backends.mysql',
- 'NAME': DB_NAME,
- 'HOST': DB_IP,
- 'PORT': DB_PORT,
- 'USER': DB_USER,
- 'PASSWORD': DB_PASSWD,
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
},
}
-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'