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

Set safer options in default config

parent d065302d
# Defaults for development ,do not use in production! # Defaults for development ,do not use in production!
DEBUG = True DEBUG = False
VIDEOPREFIX = 'https://videoag.fsmpi.rwth-aachen.de' VIDEOPREFIX = 'https://videoag.fsmpi.rwth-aachen.de'
#SECRET_KEY = 'something random' #SECRET_KEY = 'something random'
...@@ -15,6 +15,6 @@ DB_DATA = 'db_example.sql' ...@@ -15,6 +15,6 @@ DB_DATA = 'db_example.sql'
DB_ENGINE = 'sqlite' DB_ENGINE = 'sqlite'
SQLITE_DB = 'db.sqlite' SQLITE_DB = 'db.sqlite'
SQLITE_INIT_SCHEMA = True SQLITE_INIT_SCHEMA = True
SQLITE_INIT_DATA = True SQLITE_INIT_DATA = False
#LDAP_HOST = 'ldaps://rumo.fsmpi.rwth-aachen.de' #LDAP_HOST = 'ldaps://rumo.fsmpi.rwth-aachen.de'
...@@ -26,9 +26,9 @@ timer.start() ...@@ -26,9 +26,9 @@ timer.start()
config = app.config config = app.config
config.from_pyfile('config.py.example', silent=True) config.from_pyfile('config.py.example', silent=True)
if not sys.argv[0].endswith('run.py'): if sys.argv[0].endswith('run.py'):
config['SQLITE_INIT_DATA'] = False config['SQLITE_INIT_DATA'] = True
config['DEBUG'] = False config['DEBUG'] = True
config.from_pyfile('config.py', silent=True) config.from_pyfile('config.py', silent=True)
if config['DEBUG']: if config['DEBUG']:
app.jinja_env.auto_reload = True app.jinja_env.auto_reload = True
......
Supports Markdown
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