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.2.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for django_cgi-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3675bdf5772947dd15322469da0441ad1bfff8aaa226183618676e7bb20de2c9 |
|
MD5 | ae5cd462d0d368a0711acad38e5fbe6c |
|
BLAKE2b-256 | 88260f3096d3690b0315b1c6432bb656814449e753dab893748a036488e52dc0 |