Skip to main content

Enhanced WSGI support (for Django 3.0)

Project description

# django-wsgi2

django-wsgi2 is a fork of django-wsgi that: 1. Is compatible with Django 3.0. 2. Integrates easier (especially in production).

## Installation

This package can be installed from pip3: ` pip3 install django-wsgi2 `

## 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/).

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-wsgi2-1.0.2.tar.gz (5.4 kB view details)

Uploaded Source

File details

Details for the file django-wsgi2-1.0.2.tar.gz.

File metadata

  • Download URL: django-wsgi2-1.0.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/39.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.6.8

File hashes

Hashes for django-wsgi2-1.0.2.tar.gz
Algorithm Hash digest
SHA256 854c0413161e89064397c2cb5b8f02088515fb73f373215ec313fe347f901fc3
MD5 a0811792b4dc159b1090b864d082eb25
BLAKE2b-256 4910b9e30428a6920c9ece2f486e65d389183332171ea1235d221ea8ca33a4a2

See more details on using hashes here.

Supported by

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