[conf] lecture des sections du nom des domaines activés et ajout dans request.scope['config']['config']
This commit is contained in:
parent
9381e1582e
commit
8a9f93b9e0
|
@ -153,6 +153,12 @@ if is_project():
|
||||||
'project_name': PROJECT_NAME,
|
'project_name': PROJECT_NAME,
|
||||||
'production': PRODUCTION,
|
'production': PRODUCTION,
|
||||||
'secret': SECRET,
|
'secret': SECRET,
|
||||||
'domains': DOMAINS
|
'domains': DOMAINS,
|
||||||
|
'config': {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for domain in DOMAINS:
|
||||||
|
if domain not in config.sections():
|
||||||
|
continue
|
||||||
|
|
||||||
|
CONFIG['config'][domain] = dict(config.items(domain))
|
||||||
|
|
Loading…
Reference in New Issue