mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #34140 -- Reformatted code blocks in docs with blacken-docs.
This commit is contained in:
parent
6015bab80e
commit
14459f80ee
193 changed files with 5797 additions and 4481 deletions
|
@ -84,11 +84,12 @@ function::
|
|||
|
||||
import os
|
||||
|
||||
os.environ['DJANGO_SETTINGS_MODULE'] = 'mysite.settings'
|
||||
os.environ["DJANGO_SETTINGS_MODULE"] = "mysite.settings"
|
||||
|
||||
from django.contrib.auth.handlers.modwsgi import check_password
|
||||
|
||||
from django.core.handlers.wsgi import WSGIHandler
|
||||
|
||||
application = WSGIHandler()
|
||||
|
||||
|
||||
|
|
|
@ -76,6 +76,7 @@ object. For instance you could add these lines at the bottom of
|
|||
:file:`wsgi.py`::
|
||||
|
||||
from helloworld.wsgi import HelloWorldApplication
|
||||
|
||||
application = HelloWorldApplication(application)
|
||||
|
||||
You could also replace the Django WSGI application with a custom WSGI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue