Opened 4 years ago

Closed 4 years ago

#17130 closed Uncategorized (fixed)

Wrong path for get_wsgi_application() in docs

Reported by: jsdalton Owned by: nobody
Component: Documentation Version: master
Severity: Normal Keywords: wsgi
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: yes UI/UX: no


Here's the example file from

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 Changed 4 years ago by carljm

  • Resolution set to fixed
  • Status changed from new to closed

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