Ticket #8895: fastcgi.patch

File fastcgi.patch, 1.0 KB (added by Paul Egan, 11 years ago)

Patch to fastcgi.py to expose the flup debug setting

  • django/core/servers/fastcgi.py

     
    3838  daemonize=BOOL       whether to detach from terminal.
    3939  pidfile=FILE         write the spawned process-id to this file.
    4040  workdir=DIRECTORY    change to this directory when daemonizing.
     41  debug=BOOL           set to true to enable flup tracebacks
    4142  outlog=FILE          write stdout to this file.
    4243  errlog=FILE          write stderr to this file.
    4344  umask=UMASK          umask to use when daemonizing (default 022).
     
    7273    'minspare': 2,
    7374    'maxchildren': 50,
    7475    'maxrequests': 0,
     76    'debug': None,
    7577    'outlog': None,
    7678    'errlog': None,
    7779    'umask': None,
     
    125127    else:
    126128        return fastcgi_help("ERROR: Implementation must be one of prefork or thread.")
    127129
    128     wsgi_opts['debug'] = False # Turn off flup tracebacks
     130    wsgi_opts['debug'] = options['debug'] is not None
    129131
    130132    try:
    131133        WSGIServer = getattr(__import__('flup.' + flup_module, '', '', flup_module), 'WSGIServer')
Back to Top