URLs & Paths

This module provides URLs and paths for the most common utilities.

Note

All URLs and paths include explicitly marked public views where necessary, which is required when working in Paranoid Mode.

Utility URLs

django_logikal.urls.admin_urls() tuple[Sequence[URLResolver | URLPattern], str | None, str | None]

Return URLs for the django.contrib.auth app.

django_logikal.urls.error_urls() tuple[Sequence[URLResolver | URLPattern], str | None, str | None]

Return URLs for the standard error handler pages.

django_logikal.urls.debug_toolbar_urls() tuple[Sequence[URLResolver | URLPattern], str | None, str | None]

Return URLs for the Django debug toolbar.

Utility Paths

django_logikal.urls.utility_paths(sitemaps: dict[str, Sitemap | type[Sitemap]] | None = None, admin: bool = True, static: bool = False) list[URLResolver | URLPattern]

Return the common utility paths.

Includes the admin paths, sitemap and robots paths and the Django debug toolbar paths (when appropriate). Also includes the standard error paths when running locally.