django-cgi-0.1.2
توضیحات
Run Django with CGI
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-cgi-0.1.2 |
| نام | django-cgi |
| نسخه کتابخانه | 0.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Enrico Barzetti |
| ایمیل نویسنده | enricobarzetti@gmail.com |
| آدرس صفحه اصلی | https://github.com/enricobarzetti/django-cgi |
| آدرس اینترنتی | https://pypi.org/project/django-cgi/ |
| مجوز | - |
django-cgi
==========
Run Django with CGI
Installation
------------
To get the latest stable release from PyPi
.. code-block:: bash
pip install django-cgi
Install the app
.. code-block:: python
INSTALLED_APPS = (
...,
'django_cgi',
)
Usage
-----
generate_cgi_handler command
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. code-block:: bash
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:
.. code-block::
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>
نیازمندی
| مقدار | نام |
|---|---|
| >=3.1,<4.0 | django |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl django-cgi-0.1.2:
pip install django-cgi-0.1.2.whl
نصب پکیج tar.gz django-cgi-0.1.2:
pip install django-cgi-0.1.2.tar.gz