Move debug boolean to configuration file

This commit is contained in:
Mehdi Abaakouk 2012-08-21 09:21:14 +02:00
parent 9ca18eff4a
commit ea5563fe81
2 changed files with 2 additions and 1 deletions

1
lg.cfg
View File

@ -1,4 +1,5 @@
DEBUG = True
DOMAIN = "tetaneutral.net"
PROXY = {

2
lg.py
View File

@ -575,6 +575,6 @@ def show_route(request_type, hosts, proto):
app.secret_key = app.config["SESSION_KEY"]
app.debug = True
app.debug = app.config["DEBUG"]
if __name__ == "__main__":
app.run("0.0.0.0")