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 details)
Built Distribution
File details
Details for the file django-cgi-0.1.2.tar.gz
.
File metadata
- Download URL: django-cgi-0.1.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.2 Darwin/18.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4bd3b9b644c3b6a013d7eb90582208ff2bbeb286e0c62904033221c1df645c6 |
|
MD5 | 449ed6e621606907d2457e245347e154 |
|
BLAKE2b-256 | b90cfc79e81419cfe1fa8231b17f966f137fd63f345c87bf49753d208f4505a7 |
File details
Details for the file django_cgi-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: django_cgi-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.2 Darwin/18.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3675bdf5772947dd15322469da0441ad1bfff8aaa226183618676e7bb20de2c9 |
|
MD5 | ae5cd462d0d368a0711acad38e5fbe6c |
|
BLAKE2b-256 | 88260f3096d3690b0315b1c6432bb656814449e753dab893748a036488e52dc0 |