write binary map history index

This commit is contained in:
Laura Klünder 2017-10-24 00:11:02 +02:00
parent 026926503c
commit 24a2fe9522
5 changed files with 64 additions and 17 deletions

View file

@ -22,6 +22,7 @@ SOURCES_ROOT = os.path.join(DATA_DIR, 'sources')
MAP_ROOT = os.path.join(DATA_DIR, 'map')
RENDER_ROOT = os.path.join(DATA_DIR, 'render')
TILES_ROOT = os.path.join(DATA_DIR, 'tiles')
CACHE_ROOT = os.path.join(DATA_DIR, 'cache')
if not os.path.exists(DATA_DIR):
os.mkdir(DATA_DIR)
@ -37,6 +38,8 @@ if not os.path.exists(RENDER_ROOT):
os.mkdir(RENDER_ROOT)
if not os.path.exists(TILES_ROOT):
os.mkdir(TILES_ROOT)
if not os.path.exists(CACHE_ROOT):
os.mkdir(CACHE_ROOT)
if config.has_option('django', 'secret'):
SECRET_KEY = config.get('django', 'secret')