Skip to content

context_processors

main.context_processors ¤

Context processors for the app.

Functions¤

site_settings(_) ¤

Site-wide setting options to be passed to the template.

Source code in main/context_processors.py
 9
10
11
def site_settings(_: HttpRequest) -> dict[str, Any]:  # type: ignore[explicit-any]
    """Site-wide setting options to be passed to the template."""
    return {"use_OIDC": settings.USE_OIDC}