summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2009-04-01 21:37:34 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2009-04-01 21:37:34 +0000
commitc860758a574432a2eaef72d609535d40455cbfa2 (patch)
treed26fa366b406996ff3734cacf35a6baa0dea7556
parenta50c6f1f24afc45124a1d4433794bfacd645851d (diff)
Fixed #8895: expose the debug setting to fastcgi. Thanks, paulegan.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10345 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/servers/fastcgi.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/django/core/servers/fastcgi.py b/django/core/servers/fastcgi.py
index 8c8e624116..607cdb4628 100644
--- a/django/core/servers/fastcgi.py
+++ b/django/core/servers/fastcgi.py
@@ -39,6 +39,7 @@ Optional Fcgi settings: (setting=value)
daemonize=BOOL whether to detach from terminal.
pidfile=FILE write the spawned process-id to this file.
workdir=DIRECTORY change to this directory when daemonizing.
+ debug=BOOL set to true to enable flup tracebacks
outlog=FILE write stdout to this file.
errlog=FILE write stderr to this file.
umask=UMASK umask to use when daemonizing (default 022).
@@ -73,6 +74,7 @@ FASTCGI_OPTIONS = {
'minspare': 2,
'maxchildren': 50,
'maxrequests': 0,
+ 'debug': None,
'outlog': None,
'errlog': None,
'umask': None,
@@ -126,7 +128,7 @@ def runfastcgi(argset=[], **kwargs):
else:
return fastcgi_help("ERROR: Implementation must be one of prefork or thread.")
- wsgi_opts['debug'] = False # Turn off flup tracebacks
+ wsgi_opts['debug'] = options['debug'] is not None
try:
module = importlib.import_module('.%s' % flup_module, 'flup')