From 4be38f7138bdf7095e27ac015347d0339741e1a8 Mon Sep 17 00:00:00 2001 From: Julian Rother <julianr@fsmpi.rwth-aachen.de> Date: Sat, 10 Sep 2016 16:16:01 +0200 Subject: [PATCH] Set safer options in default config --- config.py.example | 4 ++-- server.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config.py.example b/config.py.example index 81862a5..15c969a 100644 --- a/config.py.example +++ b/config.py.example @@ -1,5 +1,5 @@ # Defaults for development ,do not use in production! -DEBUG = True +DEBUG = False VIDEOPREFIX = 'https://videoag.fsmpi.rwth-aachen.de' #SECRET_KEY = 'something random' @@ -15,6 +15,6 @@ DB_DATA = 'db_example.sql' DB_ENGINE = 'sqlite' SQLITE_DB = 'db.sqlite' SQLITE_INIT_SCHEMA = True -SQLITE_INIT_DATA = True +SQLITE_INIT_DATA = False #LDAP_HOST = 'ldaps://rumo.fsmpi.rwth-aachen.de' diff --git a/server.py b/server.py index 6fe4b8d..db5a68e 100644 --- a/server.py +++ b/server.py @@ -26,9 +26,9 @@ timer.start() config = app.config config.from_pyfile('config.py.example', silent=True) -if not sys.argv[0].endswith('run.py'): - config['SQLITE_INIT_DATA'] = False - config['DEBUG'] = False +if sys.argv[0].endswith('run.py'): + config['SQLITE_INIT_DATA'] = True + config['DEBUG'] = True config.from_pyfile('config.py', silent=True) if config['DEBUG']: app.jinja_env.auto_reload = True -- GitLab