# HG changeset patch # User Daniele Nicolodi # Date 1319652096 -7200 # Node ID 46caabb1ac7748cd91b8a6304a2dd80f45c8c94b # Parent 80e43dd34d71fb968f74689ad3f1bb07432376d9 Move DEBUG and TESTING options to configuration file. diff -r 80e43dd34d71 -r 46caabb1ac77 src/ltpdarepo/__init__.py --- a/src/ltpdarepo/__init__.py Wed Oct 26 20:00:09 2011 +0200 +++ b/src/ltpdarepo/__init__.py Wed Oct 26 20:01:36 2011 +0200 @@ -153,6 +153,4 @@ def main(): app.config.from_pyfile('config.py') - app.config['TESTING'] = True - app.config['DEBUG'] = True app.run() diff -r 80e43dd34d71 -r 46caabb1ac77 src/ltpdarepo/config.py --- a/src/ltpdarepo/config.py Wed Oct 26 20:00:09 2011 +0200 +++ b/src/ltpdarepo/config.py Wed Oct 26 20:01:36 2011 +0200 @@ -16,3 +16,8 @@ # administrator email ADMIN_EMAIL_ADDR = '' + +# debuggig +DEBUG = True +# suppress outgoing emails +TESTING = True