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[Union[URLResolver, URLPattern]], Optional[str], Optional[str]]

Return URLs for the django.contrib.auth app.

django_logikal.urls.error_urls() Tuple[Sequence[Union[URLResolver, URLPattern]], Optional[str], Optional[str]]

Return URLs for the standard error handler pages.

django_logikal.urls.debug_toolbar_urls() Tuple[Sequence[Union[URLResolver, URLPattern]], Optional[str], Optional[str]]

Return URLs for the Django debug toolbar.

Utility Paths

django_logikal.urls.utility_paths(sitemaps: Optional[Mapping[str, Union[Sitemap, Type[Sitemap]]]], static: bool = False) List[Union[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.