Skip to content

Commit

Permalink
Making DEBUG a configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Jul 27, 2015
1 parent 0d92bcc commit fb365cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
# 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
#------------------------------
Expand Down
5 changes: 4 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit fb365cd

Please sign in to comment.