HTTP server that implements the Python WSGI protocol (PEP 333, rev 1.21).
Based on wsgiref.simple_server which is part of the standard library since 2.5.
This is a simple server for use in testing or debugging Django apps. It hasn't been reviewed for security issues. DON'T USE IT FOR PRODUCTION USE!
Variable | logger |
Undocumented |
Class | ServerHandler |
No class docstring; 0/1 class variable, 1/3 method documented |
Class | ThreadedWSGIServer |
A threaded version of the WSGIServer |
Class | WSGIRequestHandler |
No class docstring; 0/5 instance variable, 0/1 class variable, 1/5 method documented |
Class | WSGIServer |
BaseHTTPServer that implements the Python WSGI protocol |
Function | get_internal_wsgi_application |
Load and return the WSGI application as configured by the user in settings.WSGI_APPLICATION. With the default startproject layout, this will be the application object in projectname/wsgi.py. |
Function | is_broken_pipe_error |
Undocumented |
Function | run |
Undocumented |
Load and return the WSGI application as configured by the user in settings.WSGI_APPLICATION. With the default startproject layout, this will be the application object in projectname/wsgi.py.
This function, and the WSGI_APPLICATION setting itself, are only useful for Django's internal server (runserver); external WSGI servers should just be configured to point to the correct application object directly.
If settings.WSGI_APPLICATION is not set (is None), return whatever django.core.wsgi.get_wsgi_application returns.