summaryrefslogtreecommitdiff
path: root/soc/settings.py
diff options
context:
space:
mode:
authorJayaram R Pai2014-09-17 17:00:26 +0530
committerJayaram R Pai2014-09-17 17:00:26 +0530
commit83f86d8caef9e4f9713867d5917c20df59d41581 (patch)
tree442e3d88af4b3fee14898b9969d7590063392c56 /soc/settings.py
parenta67da00579d04518032deb968493bad26b0a3bf3 (diff)
downloadscilab-on-cloud-83f86d8caef9e4f9713867d5917c20df59d41581.tar.gz
scilab-on-cloud-83f86d8caef9e4f9713867d5917c20df59d41581.tar.bz2
scilab-on-cloud-83f86d8caef9e4f9713867d5917c20df59d41581.zip
generalised settings.py, option for scilab flags
Diffstat (limited to 'soc/settings.py')
-rw-r--r--soc/settings.py22
1 files changed, 10 insertions, 12 deletions
diff --git a/soc/settings.py b/soc/settings.py
index 134c52d..2352285 100644
--- a/soc/settings.py
+++ b/soc/settings.py
@@ -19,21 +19,19 @@ MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
- 'NAME': 'soc', # Or path to database file if using sqlite3.
- # The following settings are not used with sqlite3:
- 'USER': DB_USER,
- 'PASSWORD': DB_PASS,
- 'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
- 'PORT': '', # Set to empty string for default.
+ 'NAME': DB_NAME_DEFAULT, # Or path to database file if using sqlite3.
+ 'USER': DB_USER_DEFAULT,
+ 'PASSWORD': DB_PASS_DEFAULT,
+ 'HOST': DB_HOST_DEFAULT, # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
+ 'PORT': DB_PORT_DEFAULT, # Set to empty string for default.
},
'scilab': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
- 'NAME': 'scilab', # Or path to database file if using sqlite3.
- # The following settings are not used with sqlite3:
- 'USER': DB_USER,
- 'PASSWORD': DB_PASS,
- 'HOST': '', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
- 'PORT': '', # Set to empty string for default.
+ 'NAME': DB_NAME_SCILAB, # Or path to database file if using sqlite3.
+ 'USER': DB_USER_SCILAB,
+ 'PASSWORD': DB_PASS_SCILAB,
+ 'HOST': DB_HOST_SCILAB, # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
+ 'PORT': DB_PORT_SCILAB, # Set to empty string for default.
}
}