# HG changeset patch # User Ludovic Chabant # Date 1390925675 28800 # Node ID 8701790360e004e932597ea72c68f33764b1d451 # Parent a24b8af2d4c393303ff2db8f0279734eabc8c0aa Communicate the `debug` flag to Flask. diff -r a24b8af2d4c3 -r 8701790360e0 wikked/commands/web.py --- a/wikked/commands/web.py Tue Jan 28 08:14:10 2014 -0800 +++ b/wikked/commands/web.py Tue Jan 28 08:14:35 2014 -0800 @@ -31,6 +31,9 @@ use_dbg_and_rl = not ctx.args.production + if ctx.args.debug: + app.config['DEBUG'] = True + app.wiki_params = ctx.params app.run( host=ctx.args.host,