mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-04-13 09:42:01 +00:00
Using defaults for mongo settings to simplify settings.
This commit is contained in:
parent
30c04e8eee
commit
6a8981f1bf
2 changed files with 9 additions and 9 deletions
|
@ -11,9 +11,9 @@ DATABASES = {
|
|||
}
|
||||
|
||||
MONGO_DB = {
|
||||
'NAME': 'newsblur',
|
||||
'HOST': '127.0.0.1',
|
||||
'PORT': 27017
|
||||
'name': 'newsblur',
|
||||
'host': '127.0.0.1',
|
||||
'port': 27017
|
||||
}
|
||||
|
||||
DEBUG = True
|
||||
|
|
12
settings.py
12
settings.py
|
@ -440,9 +440,9 @@ DEBUG_TOOLBAR_CONFIG = {
|
|||
# = Mongo =
|
||||
# =========
|
||||
|
||||
MONGODB = connect(MONGO_DB['NAME'],
|
||||
host=MONGO_DB['HOST'],
|
||||
port=MONGO_DB['PORT'],
|
||||
username=MONGO_DB.get('USERNAME'),
|
||||
password=MONGO_DB.get('PASSWORD'),
|
||||
slave_okay=True)
|
||||
MONGO_DB_DEFAULTS = {
|
||||
'name': 'newsblur',
|
||||
'host': 'mongodb:db01,db02/?slaveOk=true',
|
||||
}
|
||||
MONGO_DB = dict(MONGO_DB_DEFAULTS, **MONGO_DB)
|
||||
MONGODB = connect(MONGO_DB.pop('name'), **MONGO_DB)
|
||||
|
|
Loading…
Add table
Reference in a new issue