use getboolean for boolean options
This commit is contained in:
parent
b88b6c3a29
commit
ad02c7eaa7
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ if not os.path.exists(TILES_ROOT):
|
||||||
if not os.path.exists(CACHE_ROOT):
|
if not os.path.exists(CACHE_ROOT):
|
||||||
os.mkdir(CACHE_ROOT)
|
os.mkdir(CACHE_ROOT)
|
||||||
|
|
||||||
PUBLIC_EDITOR = config.get('c3nav', 'editor', fallback=True)
|
PUBLIC_EDITOR = config.getboolean('c3nav', 'editor', fallback=True)
|
||||||
PUBLIC_BASE_MAPDATA = config.get('c3nav', 'public_base_mapdata', fallback=False)
|
PUBLIC_BASE_MAPDATA = config.getboolean('c3nav', 'public_base_mapdata', fallback=False)
|
||||||
|
|
||||||
if config.has_option('django', 'secret'):
|
if config.has_option('django', 'secret'):
|
||||||
SECRET_KEY = config.get('django', 'secret')
|
SECRET_KEY = config.get('django', 'secret')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue