# HG changeset patch # User Ludovic Chabant # Date 1453660855 28800 # Node ID d7baac1d01e6229e1d0b90309641f36f23c71ba7 # Parent 3cec8634209a62b474d36a593aacceb36aee8bb8 admin: Set the `DEBUG` flag before the app runs so we can read it during setup. diff -r 3cec8634209a -r d7baac1d01e6 foodtruck/main.py --- a/foodtruck/main.py Fri Jan 22 11:01:00 2016 -0800 +++ b/foodtruck/main.py Sun Jan 24 10:40:55 2016 -0800 @@ -5,6 +5,10 @@ def run_foodtruck(debug=False): + if debug: + import foodtruck.settings + foodtruck.settings.DEBUG = debug + from .web import app try: app.run(debug=debug, threaded=True)