Metadata-Version: 2.4
Name: django-wsgi3
Version: 1.0.5
Summary: Enhanced WSGI support (for Django 4.2)
Author-email: evermine18 <edgarsanou@gmail.com>
Project-URL: Homepage, https://github.com/evermine18/django-wsgi
Keywords: django,wsgi,webob,web
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
Classifier: Topic :: Security
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: django>=4.2
Requires-Dist: WebOb>=1.5
Requires-Dist: six>=1.10.0
Requires-Dist: setuptools
Provides-Extra: tests
Requires-Dist: coverage; extra == "tests"
Requires-Dist: nose; extra == "tests"

# 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](https://pythonhosted.org/django-wsgi/ "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:
```python
from django.core.wsgi import get_wsgi_application
```
for this:
```pyton
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](https://pythonhosted.org/django-wsgi/).
