mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
17 lines
418 B
ReStructuredText
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
|