diff options
author | Bin Yang <bin.yang@windriver.com> | 2017-08-29 16:18:45 +0800 |
---|---|---|
committer | Bin Yang <bin.yang@windriver.com> | 2017-08-29 16:18:45 +0800 |
commit | cb7770b35559af5d63cf44e20ea425b89046c096 (patch) | |
tree | c76f092a302a65b9bd4b2bc60c83f6ba411da542 /newton/newton/settings.py | |
parent | 74e6b85a978ea6e98cd11f1984baef197712520c (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.py | 21 |
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 |