Run Django with CGI
Project description
Run Django with CGI
Installation
To get the latest stable release from PyPi
pip install django-cgi
Install the app
INSTALLED_APPS = (
...,
'django_cgi',
)
Usage
generate_cgi_handler command
python manage.py generate_cgi_handler
This will create a file called cgi_handler.py next to manage.py.
Server config
Point your server to serve the cgi_handler.py file. This is an example config for Apache:
LoadModule cgid_module lib/httpd/modules/mod_cgid.so
ScriptAlias /path "/repo/cgi_handler.py"
<Directory "/repo">
AllowOverride None
Options None
Require all granted
</Directory>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-cgi-0.1.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for django_cgi-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47930254e1941041e7b0040b6f51e67797f988cf0179e9fc17473b4211784758 |
|
MD5 | 15fc7cff622e0f1265d142d9f72e6112 |
|
BLAKE2b-256 | 9215c285fb2fe058bedd50d33b50570a12d8721ac1998b9a7016cdc465b12f30 |