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 = {
|
MONGO_DB = {
|
||||||
'NAME': 'newsblur',
|
'name': 'newsblur',
|
||||||
'HOST': '127.0.0.1',
|
'host': '127.0.0.1',
|
||||||
'PORT': 27017
|
'port': 27017
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
12
settings.py
12
settings.py
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue