Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit c860758a574432a2eaef72d609535d40455cbfa2 1 parent a50c6f1
Jacob Kaplan-Moss authored April 01, 2009

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  django/core/servers/fastcgi.py
4  django/core/servers/fastcgi.py
@@ -39,6 +39,7 @@
39 39
   daemonize=BOOL       whether to detach from terminal.
40 40
   pidfile=FILE         write the spawned process-id to this file.
41 41
   workdir=DIRECTORY    change to this directory when daemonizing.
  42
+  debug=BOOL           set to true to enable flup tracebacks
42 43
   outlog=FILE          write stdout to this file.
43 44
   errlog=FILE          write stderr to this file.
44 45
   umask=UMASK          umask to use when daemonizing (default 022).
@@ -73,6 +74,7 @@
73 74
     'minspare': 2,
74 75
     'maxchildren': 50,
75 76
     'maxrequests': 0,
  77
+    'debug': None,
76 78
     'outlog': None,
77 79
     'errlog': None,
78 80
     'umask': None,
@@ -126,7 +128,7 @@ def runfastcgi(argset=[], **kwargs):
126 128
     else:
127 129
         return fastcgi_help("ERROR: Implementation must be one of prefork or thread.")
128 130
 
129  
-    wsgi_opts['debug'] = False # Turn off flup tracebacks
  131
+    wsgi_opts['debug'] = options['debug'] is not None
130 132
 
131 133
     try:
132 134
         module = importlib.import_module('.%s' % flup_module, 'flup')

0 notes on commit c860758

Please sign in to comment.
Something went wrong with that request. Please try again.