Debug flag value depends now on App Engine environment.
Patch by: Pawel Solyga
Review by: Todd Larsen
Review issue: 381
Review URL: http://codereviews.googleopensourceprograms.com/381
--- a/app/settings.py Mon Aug 18 23:39:58 2008 +0000
+++ b/app/settings.py Tue Aug 19 17:49:59 2008 +0000
@@ -14,13 +14,14 @@
__authors__ = [
'"Augie Fackler" <durin42@gmail.com>',
+ '"Pawel Solyga" <pawel.solyga@gmail.com',
]
-
import os
-
-DEBUG = True
+# Debug flag True only on App Engine development environment (dev_appserver.py)
+# dev_appserver sets SERVER_SOFTWARE to 'Development/1.0'
+DEBUG = os.environ['SERVER_SOFTWARE'].startswith('Dev')
TEMPLATE_DEBUG = DEBUG
ADMINS = (