WSGI
WSGI, the Web Server Gateway Interface, is a Python standard defining the interface between web servers and Python web applications.
Python Concurrency with asyncio
WSGI is the Web Server Gateway Interface standard for communication between Python web servers and web frameworks or applications.
- How it is used
- Connects Python web servers with frameworks such as Flask and Django for standardized application deployment.
- How deep it goes
- Defines the callable interface and response lifecycle, but stops short of asynchronous execution and long-lived connections.
- Examples
- Uses a minimal hello application and a Flask database endpoint benchmarked under Gunicorn.
- What you can do after
- Operate/configure Flask or Django applications behind a production WSGI server such as Gunicorn.
Django in Action
WSGI is the Python Web Server Gateway Interface standard for connecting web servers with Python web applications.
- How it is used
- Connects a web server to Django so browser requests can reach Python application code.
- How deep it goes
- Explains the request handoff and surrounding URL-to-view flow, but does not detail the WSGI protocol implementation.
- Examples
- Uses a browser page visit that travels through a web server, WSGI, Django URL mapping, and a view.
- What you can do after
- Understand how a Django application receives requests and returns responses without treating Django as the web server.
Related concepts
- ASGIcontrasts with · ASGI, the Asynchronous Server Gateway Interface, is a Python standard interface connecting asynchronous web servers with applications and frameworks.
- Djangoused by · Django is an open-source Python web framework providing integrated components for developing structured, database-backed web applications and services.
- aiohttpcontrasts with · aiohttp is a Python library for asynchronous HTTP client and server applications built on asyncio.
- frameworkuses · A software framework is a reusable structure that provides components, conventions, services, or extension points for building applications or other software systems.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

