diff --git a/config.py.example b/config.py.example index 81862a504bab49b94015d0a03ca7d2a277aec8cc..15c969a81860af4278d20b37b69e07c0075ab4b9 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 6fe4b8d991eb6b7cf6f8d2c5d30df9e4be5ac4cb..db5a68e13cb5de9dcc5d163b44ba9f7dc3d2f77a 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