Opened 13 years ago
Closed 13 years ago
#17130 closed Uncategorized (fixed)
Wrong path for get_wsgi_application() in docs
Reported by: | Jim Dalton | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Normal | Keywords: | wsgi |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
Here's the example file wsgi.py from https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/:
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings") # This application object is used by the development server # as well as any WSGI server configured to use this file. from django.core.handlers.wsgi import get_wsgi_application application = get_wsgi_application()
However, get_wsgi_application() lives in django.core.wsgi, not django.core.handlers.wsgi.
Note:
See TracTickets
for help on using tickets.
In [17047]: