Commit 93d5adcc authored by adietmue's avatar adietmue
Browse files

Settings: allow overwriting mongo connection info with env vars

parent e0b14f25
......@@ -18,10 +18,10 @@ ADMIN_GROUP_NAME = 'PVK Admins'
# DB
MONGO_HOST = environ.get('MONGO_HOST', 'localhost')
MONGO_PORT = 27017
MONGO_USERNAME = 'pvkuser'
MONGO_PASSWORD = 'pvkpass'
MONGO_DBNAME = 'pvk'
MONGO_PORT = environ.get('MONGO_PORT', 27017)
MONGO_DBNAME = environ.get('MONGO_DBNAME', 'pvk')
MONGO_USERNAME = environ.get('MONGO_USERNAME', 'pvkuser')
MONGO_PASSWORD = environ.get('MONGO_PASSWORD', 'pvkpass')
# Only JSON, simplifies hooks
XML = False
......@@ -98,7 +98,7 @@ DOMAIN = {
'nullable': False,
}
# TODO: Not the same nethz twice
# TODO: nethz is enough?
# TODO: Is nethz enough here?
}
},
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment