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.

Change History (1)

comment:1 by Carl Meyer, 13 years ago

Resolution: fixed
Status: newclosed

In [17047]:

Fixed #17130 -- Corrected import path of get_wsgi_application in deployment docs. Thanks jsdalton for the report.

Note: See TracTickets for help on using tickets.
Back to Top