aboutsummaryrefslogtreecommitdiff
path: root/wqflask/cfg
diff options
context:
space:
mode:
authorZachary Sloan2012-10-25 15:48:14 -0500
committerZachary Sloan2012-10-25 15:48:14 -0500
commita3e23950f25863697128eb3e40fd346c848e7ae5 (patch)
tree0bf3bab4c3042b49c9a9001906d1db41c64a2e94 /wqflask/cfg
parentfa3247c3284034357719f9234a2942f9cda8c2b6 (diff)
downloadgenenetwork2-a3e23950f25863697128eb3e40fd346c848e7ae5.tar.gz
Got the Make Default option working on the home page
Diffstat (limited to 'wqflask/cfg')
-rw-r--r--wqflask/cfg/default_settings.py4
-rw-r--r--wqflask/cfg/zach_settings.py1
2 files changed, 5 insertions, 0 deletions
diff --git a/wqflask/cfg/default_settings.py b/wqflask/cfg/default_settings.py
index 30ad51d1..1811ccfd 100644
--- a/wqflask/cfg/default_settings.py
+++ b/wqflask/cfg/default_settings.py
@@ -1 +1,5 @@
LOGFILE = """/tmp/flask_gn_log"""
+
+#This is needed because Flask turns key errors into a
+#400 bad request response with no exception/log
+TRAP_BAD_REQUEST_ERRORS = True
diff --git a/wqflask/cfg/zach_settings.py b/wqflask/cfg/zach_settings.py
index 30ad51d1..ed97f222 100644
--- a/wqflask/cfg/zach_settings.py
+++ b/wqflask/cfg/zach_settings.py
@@ -1 +1,2 @@
LOGFILE = """/tmp/flask_gn_log"""
+TRAP_BAD_REQUEST_ERRORS = True