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.1.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for django_cgi-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a267a6c47491d08a426280e258a927fd449fdbebb66bdddec63142038173702 |
|
MD5 | 18e9c6545cbe833fbff280b78a0f6484 |
|
BLAKE2b-256 | efa45318cadde648fd4a13cb2c1dc0c2dea40e832401fbaa70c5803a9a98a470 |