summaryrefslogtreecommitdiffstats
path: root/newton/newton/settings.py
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2017-08-29 16:18:45 +0800
committerBin Yang <bin.yang@windriver.com>2017-08-29 16:18:45 +0800
commitcb7770b35559af5d63cf44e20ea425b89046c096 (patch)
treec76f092a302a65b9bd4b2bc60c83f6ba411da542 /newton/newton/settings.py
parent74e6b85a978ea6e98cd11f1984baef197712520c (diff)
Add OpenStack proxy for newton
refactor seed code for newton add proxy for identiy,service, add registration, extension management Issue-Id: MULTICLOUD-58 Change-Id: I6a7a21427af4c88b7f060470c1176009c13fc19e Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'newton/newton/settings.py')
-rw-r--r--newton/newton/settings.py21
1 files changed, 8 insertions, 13 deletions
diff --git a/newton/newton/settings.py b/newton/newton/settings.py
index b0be17e8..682e8eb4 100644
--- a/newton/newton/settings.py
+++ b/newton/newton/settings.py
@@ -66,13 +66,6 @@ REST_FRAMEWORK = {
)
}
-DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
- }
-}
-
TIME_ZONE = 'UTC'
# Static files (CSS, JavaScript, Images)
@@ -110,14 +103,16 @@ LOGGING = {
}
}
+CACHES = {
+ 'default': {
+ 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
+ 'LOCATION': '127.0.0.1:11211',
+ }
+}
+
if 'test' in sys.argv:
from newton.pub.config import config
- config.REG_TO_MSB_WHEN_START = False
- DATABASES = {}
- DATABASES['default'] = {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': ':memory:',
- }
+
REST_FRAMEWORK = {}
import platform