Skip to main content

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


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)

Uploaded Source

Built Distribution

django_cgi-0.1.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page