Using defaults for mongo settings to simplify settings.

This commit is contained in:
Samuel Clay 2011-08-27 16:22:52 -07:00
parent 30c04e8eee
commit 6a8981f1bf
2 changed files with 9 additions and 9 deletions

View file

@ -11,9 +11,9 @@ DATABASES = {
} }
MONGO_DB = { MONGO_DB = {
'NAME': 'newsblur', 'name': 'newsblur',
'HOST': '127.0.0.1', 'host': '127.0.0.1',
'PORT': 27017 'port': 27017
} }
DEBUG = True DEBUG = True

View file

@ -440,9 +440,9 @@ DEBUG_TOOLBAR_CONFIG = {
# = Mongo = # = Mongo =
# ========= # =========
MONGODB = connect(MONGO_DB['NAME'], MONGO_DB_DEFAULTS = {
host=MONGO_DB['HOST'], 'name': 'newsblur',
port=MONGO_DB['PORT'], 'host': 'mongodb:db01,db02/?slaveOk=true',
username=MONGO_DB.get('USERNAME'), }
password=MONGO_DB.get('PASSWORD'), MONGO_DB = dict(MONGO_DB_DEFAULTS, **MONGO_DB)
slave_okay=True) MONGODB = connect(MONGO_DB.pop('name'), **MONGO_DB)