From d3cdec447d691553a1861a8ac8a2b7d0cf61def1 Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Fri, 24 Feb 2017 16:33:14 +0800 Subject: Remove dependency on mysql Change-Id: I9bbecf8e22b1ee59ab8d80d808c4e8f0bd1a7421 Issue-Id: MULTIVIM-48 Signed-off-by: Bin Yang --- newton/newton/settings.py | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'newton/newton/settings.py') diff --git a/newton/newton/settings.py b/newton/newton/settings.py index 8a5cc010..b0be17e8 100644 --- a/newton/newton/settings.py +++ b/newton/newton/settings.py @@ -12,11 +12,6 @@ import os import sys -import redisco - -from newton.pub.config.config import REDIS_HOST, REDIS_PORT, REDIS_PASSWD -from newton.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__))) @@ -73,18 +68,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' # Static files (CSS, JavaScript, Images) -- cgit 1.2.3-korg