update settings to allow environment to override config
diff --git a/xos/xos/settings.py b/xos/xos/settings.py
index c8b1da7..4c0f779 100644
--- a/xos/xos/settings.py
+++ b/xos/xos/settings.py
@@ -16,8 +16,8 @@
# that the set of overrides will be expanded with need
def overrideDbSettings(v):
parsed = urlparse(v)
- set_override('db_host', parsed.hostname)
- set_override('db_port', parsed.port)
+ config.db_host = parsed.hostname
+ config.db_port = parsed.port
env_to_config_dict = {
"XOS_DB_PORT" : overrideDbSettings
@@ -50,7 +50,7 @@
'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.
+ 'PORT': config.db_port, # Set to empty string for default.
}
}