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.
Also covered in
- Software Engineering for Data ScientistsIn early access (MEAP)
- The Well-Grounded Python Developer: How the pros use Python and Flask
Related concepts
- aiohttpcontrasts with · aiohttp is a Python library for asynchronous HTTP client and server applications built on asyncio.
- ASGIalternative to · ASGI, the Asynchronous Server Gateway Interface, is a Python standard interface for communication between asynchronous-capable web servers and applications or frameworks.
- Djangoused by · Django is an open-source Python web framework providing integrated components for developing structured, database-backed web applications and services.
- frameworkuses · A software framework is a reusable foundation of components, conventions, and supporting mechanisms that structures application development and provides common functionality and extension points.
- Gunicornused by · Gunicorn is a Python WSGI HTTP server that runs web applications using managed worker processes.
Questions about WSGI
What is WSGI?
WSGI, the Web Server Gateway Interface, is a Python standard defining the interface between web servers and Python web applications.
Which Manning books explain WSGI?
Python Concurrency with asyncio and Django in Action.
What is the difference between WSGI and aiohttp?
WSGI, the Web Server Gateway Interface, is a Python standard defining the interface between web servers and Python web applications. aiohttp is a Python library for asynchronous HTTP client and server applications built on asyncio.
What is WSGI also called?
WSGI is also called web server gateway interface.
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.

