gunicorn/docs/source/custom.rst
Berker Peksag 1c68516fd7 Update custom application example.
It's running on both Python 2 and 3 now.
2014-06-13 14:26:57 +03:00

17 lines
418 B
ReStructuredText

.. _custom:
==================
Custom Application
==================
.. versionadded:: 19.0
Sometimes, you want to integrate Gunicorn with your WSGI application. In this
case, you can inherit from :class:`gunicorn.app.base.BaseApplication`.
Here is a small example where we create a very small WSGI app and load it with a
custom Application:
.. literalinclude:: ../../examples/standalone_app.py
:lines: 11-60