[conf] get -> items for list of domains, fix default conf

This commit is contained in:
Maxime Alves LIRMM@home 2020-07-28 11:46:02 +02:00
parent f5a210a855
commit cf9b5168b4
2 changed files with 5 additions and 4 deletions

View File

@ -8,9 +8,9 @@ default_config = {
'project': { 'project': {
'host': '127.0.0.1', 'host': '127.0.0.1',
'port': '8000', 'port': '8000',
'secret': '' 'secret': '',
'base_dir': '' 'base_dir': '',
'production': '' 'production': 'no'
} }
} }
@ -41,4 +41,4 @@ with open(config.get('project', 'secret')) as secret_file:
PRODUCTION = config.getboolean('project', 'production') PRODUCTION = config.getboolean('project', 'production')
BASE_DIR = config.get('project', 'base_dir') BASE_DIR = config.get('project', 'base_dir')
DOMAINS = [domain for domain in config.get('domains').keys()] DOMAINS = [domain for domain, _ in config.items('domains')]

View File

@ -1,3 +1,4 @@
click
starlette starlette
uvicorn uvicorn
jwt jwt