Skip to content

Django Settings

Bases: BaseModel

Alter these by modifying the values in Django's settings module (usually settings.py).

Attributes:

Name Type Description
NINJA_PAGINATION_CLASS str

The pagination class to use. Defaults to ninja.pagination.Pagination.

NINJA_PAGINATION_PAGE_SIZE int

The default page size. Defaults to 100.

NINJA_DOCS_VIEW swagger | redoc

The view to use for the documentation. Defaults to swagger, but change to redoc to use alternative Redoc automatic documentation.