liveBook · Manning

WSGI

Also called web server gateway interface

WSGI, the Web Server Gateway Interface, is a Python standard defining the interface between web servers and Python web applications.

How 2 Manning books explain it

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.

Read how Python Concurrency with asyncio explains WSGI →

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.

Read how Django in Action explains WSGI →

Also covered in

Related concepts

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.