Enhanced WSGI support (for Django 4.2)
Project description
django-wsgi3
django-wsgi3 is a fork of django-wsgi2 that has been modified to be compatible with Django 4.2.
Installation
This package can be installed from pip3:
pip3 install django-wsgi3
Configuration
In the original django-wsgi documentation the configuration is based on modifying the WSGI_APPLICATION setting value in settings.py. This is enough for development purposes but does not work in a production environment. In a production environment, it is not clear the location of the WSGI application that the HTTP server has to target requests to. The documentation was vague about this point, so this package provides an alternative:
This is how django-wsgi2 is configured both for testing and production:
In your Django project wsgi.py file (project_root/project_name/wsgi.py), replace this line:
from django.core.wsgi import get_wsgi_application
for this:
from django_wsgi.handler import get_wsgi_application
That is all you need to do.
Documentation
Additionanl documentation for django-wsgi2 can be found in the original django-wsgi package documentation.
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 Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django_wsgi3-1.0.5-py3-none-any.whl.
File metadata
- Download URL: django_wsgi3-1.0.5-py3-none-any.whl
- Upload date:
- Size: 11.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2996eb0c29c4ba2b5c55853fc2fb1af3d707afb87ed6ec85d267322dbd23f431
|
|
| MD5 |
c8e73b1c610611909d3223f7ffc32634
|
|
| BLAKE2b-256 |
5f25050937a63d6309b0d8fe30c8d3c791aaf0c94a33a4c9bf294028027b3135
|