Making DEBUG a configuration

This commit is contained in:
Maxime 2015-07-27 22:51:36 +00:00
parent 0d92bccbb0
commit fb365cd178
2 changed files with 7 additions and 1 deletions

View File

@ -36,6 +36,9 @@ SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'app.db')
# Flask-WTF flag for CSRF
CSRF_ENABLED = True
#Whether to run the web server in debug mode or not
DEBUG = True
#------------------------------
# GLOBALS FOR APP Builder
#------------------------------

5
run.py
View File

@ -1,5 +1,8 @@
from app import app
import config
app.run(host='0.0.0.0', port=int(config.PANORAMIX_WEBSERVER_PORT), debug=True)
app.run(
host='0.0.0.0',
port=int(config.PANORAMIX_WEBSERVER_PORT),
debug=config.DEBUG)