[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,
|
||||
'production': PRODUCTION,
|
||||
'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