-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi_config.patch
More file actions
executable file
·33 lines (31 loc) · 1.06 KB
/
api_config.patch
File metadata and controls
executable file
·33 lines (31 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- /opt/etag/config/api_config.py
+++ /opt/etag/config/api_config.py
@@ -49,12 +49,27 @@
# https://docs.djangoproject.com/en/1.6/ref/settings/#databases
DATABASES = {
'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
+ #'ENGINE': 'django.db.backends.postgresql_psycopg2',
+ #'NAME': 'etag_auth',
+ #'USER': 'etag_master',
+ #'PASSWORD': 'etag_master',
+ #'HOST': 'cybercom_postgres',
+ #'PORT': '5432',
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
+ },
+ 'etag': {
+ 'ENGINE': 'django.db.backends.postgresql_psycopg2',
+ 'NAME': 'etag',
+ 'USER': 'etag_master',
+ 'PASSWORD': 'etag_master',
+ 'HOST': 'cybercom_postgres',
+ 'PORT': '5432',
}
}
-DATABASE_ROUTERS = []
+#DATABASE_ROUTERS = []
+DATABASE_ROUTERS = ['etag.etag_router.EtagRouter',]
#******* Queue *******************************************************
MEMCACHE_HOST = "cybercom_memcache"