Commit 4be38f71 authored by Julian Rother's avatar Julian Rother

Set safer options in default config

parent d065302d
# 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'
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment