Ticket #6610: trac-6610.diff
File trac-6610.diff, 2.1 KB (added by , 16 years ago) |
---|
-
django/core/servers/fastcgi.py
35 35 maxspare=NUMBER max number of spare processes / threads 36 36 minspare=NUMBER min number of spare processes / threads. 37 37 maxchildren=NUMBER hard limit number of processes / threads 38 debug=BOOL whether to enable flup traceback pages (default false). 38 39 daemonize=BOOL whether to detach from terminal. 39 40 pidfile=FILE write the spawned process-id to this file. 40 41 workdir=DIRECTORY change to this directory when daemonizing. … … 72 73 'minspare': 2, 73 74 'maxchildren': 50, 74 75 'maxrequests': 0, 76 'debug': False, 75 77 'outlog': None, 76 78 'errlog': None, 77 79 'umask': None, … … 125 127 else: 126 128 return fastcgi_help("ERROR: Implementation must be one of prefork or thread.") 127 129 128 wsgi_opts['debug'] = False # Turn off flup tracebacks 130 if options["debug"] == False: 131 wsgi_opts['debug'] = False 132 elif options["debug"].lower() in ('true', 'yes', 't'): 133 wsgi_opts['debug'] = True 129 134 130 135 try: 131 136 WSGIServer = getattr(__import__('flup.' + flup_module, '', '', flup_module), 'WSGIServer') -
docs/howto/deployment/fastcgi.txt
114 114 115 115 ./manage.py runfcgi method=prefork socket=/home/user/mysite.sock pidfile=django.pid 116 116 117 Run without daemonizing (backgrounding) the process (good for debugging):: 117 Run without daemonizing (backgrounding) the process (good for debugging). 118 Also enable flup debug pages, this helps to track down problems with middleware:: 118 119 119 ./manage.py runfcgi d aemonize=false socket=/tmp/mysite.sock maxrequests=1120 ./manage.py runfcgi debug=true daemonize=false socket=/tmp/mysite.sock maxrequests=1 120 121 121 122 Stopping the FastCGI daemon 122 123 ---------------------------