Move DEBUG and TESTING options to configuration file.
author |
Daniele Nicolodi <daniele@grinta.net> |
date |
Wed, 26 Oct 2011 20:01:36 +0200 |
parents |
80e43dd34d71 |
children |
07e85fcb9268 |
files |
src/ltpdarepo/__init__.py src/ltpdarepo/config.py |
diffstat |
2 files changed, 5 insertions(+), 2 deletions(-)
[+]
|
line diff
--- 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()
--- 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