use setting from planetstack config file
diff --git a/plstackapi/planetstack/settings.py b/plstackapi/planetstack/settings.py
index a477452..9af30d9 100644
--- a/plstackapi/planetstack/settings.py
+++ b/plstackapi/planetstack/settings.py
@@ -9,14 +9,16 @@
MANAGERS = ADMINS
+from plstackapi.planetstack.config import Config
+config = Config()
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
- 'NAME': 'planetstack', # Or path to database file if using sqlite3.
+ 'NAME': config.db_name, # Or path to database file if using sqlite3.
# The following settings are not used with sqlite3:
- 'USER': 'postgres',
- 'PASSWORD': 'password',
- 'HOST': 'localhost', # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
+ 'USER': config.db_user,
+ 'PASSWORD': config.db_password,
+ 'HOST': config.db_host, # Empty for localhost through domain sockets or '127.0.0.1' for localhost through TCP.
'PORT': '', # Set to empty string for default.
}
}