Settings

popupcrud.views.POPUPCRUD_DEFAULTS

django-popupcrud global settings are specified as the dict variable POPUPCRUD in settings.py.

POPUPCRUD currently supports the following settings with their default values:

  • base_template: The prjoject base template from which all popupcrud templates should be derived.

    Defaults to base.html.

  • page_title_context_variable: Name of the context variable whose value will be set as the title for the CRUD list view page. This title is specified as the value for the class attribute ViewSet.page_title or as the return value of ViewSet.get_page_title().

    Defaults to page_title.

  • paginate_by: Default number of rows per page for queryset pagination. This is the same as ListView.paginate_by.

    Defaults to 10.