django_prodserver package

Subpackages

Submodules

django_prodserver.apps module

class django_prodserver.apps.ProdserverAppConfig(app_name, app_module)[source]

Bases: AppConfig

App config for Django prodserver.

name = 'django_prodserver'
verbose_name

django_prodserver.conf module

These are the available settings.

All attributes prefixed PRODUCTION_* can be overridden from your Django project’s settings module by defining a setting with the same name.

class django_prodserver.conf.AppSettings(PRODUCTION_PROCESSES: ~collections.abc.Mapping[str, ~collections.abc.Mapping[str, str]] = <factory>)[source]

Bases: object

Access this instance as .conf.app_settings.

PRODUCTION_PROCESSES: Mapping[str, Mapping[str, str]]

Whether the app is enabled (dummy setting to demo usage).

django_prodserver.utils module

exception django_prodserver.utils.WarmupFailure[source]

Bases: Exception

Exception to capture WarmupFailure.

django_prodserver.utils.asgi_app_name() str[source]

Get the ASGI name from settings.

django_prodserver.utils.wsgi_app_name() str[source]

Get the WSGI name from settings.

django_prodserver.utils.wsgi_healthcheck(app: WSGIHandler, url: str, ok_status: int = 200) None[source]

Simple healthcheck function.