Commit 0690d180 authored by Julian Rother's avatar Julian Rother
Browse files

Use config.py.example as default config

parent c77660e3
# Config for testing purposes only, don't run this in production!
# Defaults for development ,do not use in production!
DEBUG = True
VIDEOPREFIX = 'https://videoag.fsmpi.rwth-aachen.de'
DB_SCHEMA = 'db_schema.sql'
DB_DATA = 'db_example.sql'
#DB_ENGINE = 'mysql'
#MYSQL_HOST = 'localhost'
#MYSQL_USER = 'videoag'
#MYSQL_PASSWD = 'somuchsecret'
#MYSQL_DB = 'videos'
#DB_ENGINE = 'mysql'
SQLITE_DB = 'db.sqlite'
DB_ENGINE = 'sqlite'
SQLITE_DB = 'db.sqlite'
SQLITE_INIT_SCHEMA = True
SQLITE_INIT_DATA = True
#LDAP_HOST = 'ldaps://rumo.fsmpi.rwth-aachen.de'
#!/usr/bin/env python
from server import *
global is_debug
is_debug = True
if __name__ == '__main__':
app.run(threaded=True)
......@@ -23,17 +23,10 @@ timer.daemon = True
timer.start()
config = app.config
config['DB_SCHEMA'] = 'db_schema.sql'
config['DB_DATA'] = 'db_example.sql'
config['DB_ENGINE'] = 'sqlite'
config['SQLITE_DB'] = 'db.sqlite'
config['SQLITE_INIT_SCHEMA'] = True
config['SQLITE_INIT_DATA'] = False
config['DEBUG'] = False
config['VIDEOPREFIX'] = 'https://videoag.fsmpi.rwth-aachen.de'
if __name__ == '__main__':
config['SQLITE_INIT_DATA'] = True
config['DEBUG'] = True
config.from_pyfile('config.py.example', silent=True)
if 'is_debug' in globals():
config['SQLITE_INIT_DATA'] = False
config['DEBUG'] = False
config.from_pyfile('config.py', silent=True)
if config['DEBUG']:
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