use getboolean for boolean options

This commit is contained in:
Laura Klünder 2018-09-19 19:34:34 +02:00
parent b88b6c3a29
commit ad02c7eaa7

View file

@ -41,8 +41,8 @@ if not os.path.exists(TILES_ROOT):
if not os.path.exists(CACHE_ROOT):
os.mkdir(CACHE_ROOT)
PUBLIC_EDITOR = config.get('c3nav', 'editor', fallback=True)
PUBLIC_BASE_MAPDATA = config.get('c3nav', 'public_base_mapdata', fallback=False)
PUBLIC_EDITOR = config.getboolean('c3nav', 'editor', fallback=True)
PUBLIC_BASE_MAPDATA = config.getboolean('c3nav', 'public_base_mapdata', fallback=False)
if config.has_option('django', 'secret'):
SECRET_KEY = config.get('django', 'secret')