CARVIEW |
Select Language
HTTP/2 200
server: nginx
content-type: text/html;charset=utf-8
cache-control: must-revalidate
expires: Fri, 01 Jan 1999 00:00:00 GMT
set-cookie: trac_form_token=df1731635e16df9ad8dca1bb; HttpOnly; Path=/; Secure
set-cookie: trac_session=4e34d6e6e5db18b6b4067d3d; expires=Tue, 21 Oct 2025 12:28:16 GMT; HttpOnly; Path=/; Secure
strict-transport-security: max-age=31536000; includeSubDomains; preload
permissions-policy: interest-cohort=()
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
accept-ranges: bytes
via: 1.1 varnish, 1.1 varnish
date: Wed, 23 Jul 2025 12:28:17 GMT
x-served-by: cache-fra-eddf8230048-FRA, cache-bom-vanm7210042-BOM
x-cache: MISS, MISS
x-cache-hits: 0, 0
x-timer: S1753273697.864934,VS0,VE329
vary: Accept-Encoding
DjangoUsingFlup – Django
Back to Top
Django
The web framework for perfectionists with deadlines.
Issues
Django using the Flup FastCGI Module
First you will need the Flup Package. There is an egg, which can get installed very easy using easy_install
.
FastCGI
For FastCGI you need a file called yourapplication.fcg
. Insert the following code:
#!/usr/bin/env python import os import sys from flup.server.fcgi import WSGIServer from django.core.handlers.wsgi import WSGIHandler sys.path.insert(0, '/path/to/your/application') os.environ['DJANGO_SETTINGS_MODULE'] = 'yourapplication.settings' WSGIServer(WSGIHandler()).run()
Save somewhere (eg /usr/lib/cgi-bin
) and open your Apache conf file (probably called httpd.conf
).
Make sure that Apache has permission to execute this file.
Insert the following VHost:
<VirtualHost *> ServerName www.yourserver.com ServerAlias yourserver.com # Uncomment the next line when you want to use Suexec ##SuexecUserGroup youruser yourgroup AddType fastcgi-script .fcg ScriptAlias / /path/to/yourapplication.fcg/ </VirtualHost>
Enable and restart Apache.
Last modified
19 years ago
Last modified on Apr 17, 2006, 4:25:29 PM
Note:
See TracWiki
for help on using the wiki.
Download in other formats:
Django Links
Learn More
Get Involved
Follow Us
- Hosting by In-kind donors
- Design by Threespot &
© 2005-2025 Django SoftwareFoundation unless otherwise noted. Django is a registered trademark of the Django Software Foundation.