django-wsgi3


Namedjango-wsgi3 JSON
Version 1.0.3 PyPI version JSON
download
home_pagehttps://github.com/evermine18/django-wsgi
SummaryEnhanced WSGI support (for Django 4.2)
upload_time2023-07-31 10:12:04
maintainer
docs_urlNone
authorevermine18
requires_python
licenseBSD (http://dev.2degreesnetwork.com/p/2degrees-license.html)
keywords django wsgi webob web
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            # django-wsgi2

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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/evermine18/django-wsgi",
    "name": "django-wsgi3",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "django wsgi webob web",
    "author": "evermine18",
    "author_email": "edgarsanou@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/8b/9c/24c2beeb1d31f451673ead62e0479de028be606f6df0fd5d0783f0b87067/django-wsgi3-1.0.3.tar.gz",
    "platform": null,
    "description": "# django-wsgi2\r\n\r\n*django-wsgi3* is a fork of *django-wsgi2* that has been modified to be compatible with Django 4.2.\r\n\r\n\r\n## Installation\r\n\r\nThis package can be installed from pip3:\r\n```\r\npip3 install django-wsgi2\r\n```\r\n\r\n## Configuration\r\n\r\nIn 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:\r\n\r\nThis is how django-wsgi2 is configured both for testing and production:\r\n\r\nIn your Django project wsgi.py file (project_root/project_name/wsgi.py), replace this line:\r\n```python\r\nfrom django.core.wsgi import get_wsgi_application\r\n```\r\nfor this:\r\n```pyton\r\nfrom django_wsgi.handler import get_wsgi_application\r\n```\r\n\r\nThat is all you need to do.\r\n\r\n## Documentation\r\n\r\nAdditionanl documentation for django-wsgi2 can be found in the original django-wsgi package [documentation](https://pythonhosted.org/django-wsgi/).\r\n",
    "bugtrack_url": null,
    "license": "BSD (http://dev.2degreesnetwork.com/p/2degrees-license.html)",
    "summary": "Enhanced WSGI support (for Django 4.2)",
    "version": "1.0.3",
    "project_urls": {
        "Homepage": "https://github.com/evermine18/django-wsgi"
    },
    "split_keywords": [
        "django",
        "wsgi",
        "webob",
        "web"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "afae5b0145a9410e72b274fb04fd63f6666918524e72cd4eeabe9dbda72600f5",
                "md5": "83102003773e17aaf673cd49384532ba",
                "sha256": "e0d4b33ad1ce6f05595a784457a209a8593de6827326eeb75aee152fc8ef78f9"
            },
            "downloads": -1,
            "filename": "django_wsgi3-1.0.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "83102003773e17aaf673cd49384532ba",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 8990,
            "upload_time": "2023-07-31T10:12:02",
            "upload_time_iso_8601": "2023-07-31T10:12:02.922185Z",
            "url": "https://files.pythonhosted.org/packages/af/ae/5b0145a9410e72b274fb04fd63f6666918524e72cd4eeabe9dbda72600f5/django_wsgi3-1.0.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8b9c24c2beeb1d31f451673ead62e0479de028be606f6df0fd5d0783f0b87067",
                "md5": "8ce45d0ec60dacdaa7d91e778db308dc",
                "sha256": "538175aaf5f26eb77231553870fb8c991900349e6f85a1ec1e44c4d2921d1b05"
            },
            "downloads": -1,
            "filename": "django-wsgi3-1.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "8ce45d0ec60dacdaa7d91e778db308dc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5585,
            "upload_time": "2023-07-31T10:12:04",
            "upload_time_iso_8601": "2023-07-31T10:12:04.815174Z",
            "url": "https://files.pythonhosted.org/packages/8b/9c/24c2beeb1d31f451673ead62e0479de028be606f6df0fd5d0783f0b87067/django-wsgi3-1.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-31 10:12:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "evermine18",
    "github_project": "django-wsgi",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "django-wsgi3"
}
        
Elapsed time: 0.27794s