Ticket #14958: fastcgi.py.diff
File fastcgi.py.diff, 947 bytes (added by , 14 years ago) |
---|
-
django/core/servers/fastcgi.py
old new 42 42 debug=BOOL set to true to enable flup tracebacks 43 43 outlog=FILE write stdout to this file. 44 44 errlog=FILE write stderr to this file. 45 socket_umask=UMASK umask to use for creation of Unix Domain Socket. 45 46 umask=UMASK umask to use when daemonizing (default 022). 46 47 47 48 Examples: … … 77 78 'debug': None, 78 79 'outlog': None, 79 80 'errlog': None, 81 'socket_umask': None, 80 82 'umask': None, 81 83 } 82 84 … … 129 131 return fastcgi_help("ERROR: Implementation must be one of prefork or thread.") 130 132 131 133 wsgi_opts['debug'] = options['debug'] is not None 134 if options['socket_umask']: wsgi_opts['umask'] = int(options['socket_umask']) 132 135 133 136 try: 134 137 module = importlib.import_module('.%s' % flup_module, 'flup')