mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
[3.1.x] Used :pep: role in various docs.
Backport of a9337b4add from master
This commit is contained in:
committed by
Mariusz Felisiak
parent
d6e6695d93
commit
15d76dc2ab
@@ -70,8 +70,10 @@ If this variable isn't set, the default :file:`wsgi.py` sets it to
|
||||
Applying WSGI middleware
|
||||
========================
|
||||
|
||||
To apply `WSGI middleware`_ you can wrap the application object. For instance
|
||||
you could add these lines at the bottom of :file:`wsgi.py`::
|
||||
To apply :pep:`WSGI middleware
|
||||
<3333#middleware-components-that-play-both-sides>` you can wrap the application
|
||||
object. For instance you could add these lines at the bottom of
|
||||
:file:`wsgi.py`::
|
||||
|
||||
from helloworld.wsgi import HelloWorldApplication
|
||||
application = HelloWorldApplication(application)
|
||||
@@ -79,5 +81,3 @@ you could add these lines at the bottom of :file:`wsgi.py`::
|
||||
You could also replace the Django WSGI application with a custom WSGI
|
||||
application that later delegates to the Django WSGI application, if you want
|
||||
to combine a Django application with a WSGI application of another framework.
|
||||
|
||||
.. _`WSGI middleware`: https://www.python.org/dev/peps/pep-3333/#middleware-components-that-play-both-sides
|
||||
|
||||
Reference in New Issue
Block a user