Urls
Django URL dispatcher for the cms package.
See urls
for the other namespaces of this application.
For more information on this file, see URL dispatcher.
- integreat_cms.cms.urls.urlpatterns: list[URLPattern] = [<URLResolver <module 'integreat_cms.cms.urls.public' from '/home/circleci/project/integreat_cms/cms/urls/public.py'> (public:public) ''>, <URLResolver <module 'integreat_cms.cms.urls.protected' from '/home/circleci/project/integreat_cms/cms/urls/protected.py'> (None:None) ''>][source]
The url patterns of this module (see URL dispatcher)
[ <URLResolver <module 'integreat_cms.cms.urls.public' from '/home/circleci/project/integreat_cms/cms/urls/public.py'> (public:public) ''>, <URLResolver <module 'integreat_cms.cms.urls.protected' from '/home/circleci/project/integreat_cms/cms/urls/protected.py'> (None:None) ''>, ]
Protected
URLconf for login-protected views of the cms package. These urls are processed by
AccessControlMiddleware
.
Views which should not have login protection go into public
.
- integreat_cms.cms.urls.protected.media_ajax_urlpatterns: list[URLPattern] = [<URLResolver <URLResolver list> (None:None) 'media/'>][source]
The media library ajax url patterns are reused twice (for the admin media library and the region media library)
[<URLResolver <URLResolver list> (None:None) 'media/'>]
- integreat_cms.cms.urls.protected.page_order_table_urlpatterns: list[URLPattern] = [<URLPattern '' [name='get_page_order_table_ajax']>, <URLPattern 'page-<int:page_id>/' [name='get_page_order_table_ajax']>][source]
The page order table url patterns are reused twice (for root pages and for subpages)
[ <URLPattern '' [name='get_page_order_table_ajax']>, <URLPattern 'page-<int:page_id>/' [name='get_page_order_table_ajax']>, ]
- integreat_cms.cms.urls.protected.urlpatterns: list[URLPattern] = [<URLPattern 'admin-dashboard/' [name='admin_dashboard']>, <URLResolver <URLPattern list> (None:None) 'region-condition/'>, <URLResolver <URLPattern list> (None:None) 'linkcheck/'>, <URLResolver <URLPattern list> (None:None) 'regions/'>, <URLPattern 'media-library/' [name='media_admin']>, <URLResolver <URLPattern list> (None:None) 'languages/'>, <URLResolver <URLPattern list> (None:None) 'users/'>, <URLResolver <URLPattern list> (None:None) 'location-categories/'>, <URLResolver <URLPattern list> (None:None) 'roles/'>, <URLResolver <URLPattern list> (None:None) 'feedback/'>, <URLResolver <URLPattern list> (None:None) 'offer-templates/'>, <URLResolver <URLResolver list> (None:None) ''>, <URLResolver <URLResolver list> (None:None) 'ajax/'>, <URLPattern 'release-notes/' [name='release_notes']>, <URLResolver <URLPattern list> (None:None) '<region_slug>/'>][source]
The url patterns of this module (see URL dispatcher)
[ <URLPattern 'admin-dashboard/' [name='admin_dashboard']>, <URLResolver <URLPattern list> (None:None) 'region-condition/'>, <URLResolver <URLPattern list> (None:None) 'linkcheck/'>, <URLResolver <URLPattern list> (None:None) 'regions/'>, <URLPattern 'media-library/' [name='media_admin']>, <URLResolver <URLPattern list> (None:None) 'languages/'>, <URLResolver <URLPattern list> (None:None) 'users/'>, <URLResolver <URLPattern list> (None:None) 'location-categories/'>, <URLResolver <URLPattern list> (None:None) 'roles/'>, <URLResolver <URLPattern list> (None:None) 'feedback/'>, <URLResolver <URLPattern list> (None:None) 'offer-templates/'>, <URLResolver <URLResolver list> (None:None) ''>, <URLResolver <URLResolver list> (None:None) 'ajax/'>, <URLPattern 'release-notes/' [name='release_notes']>, <URLResolver <URLPattern list> (None:None) '<region_slug>/'>, ]
- integreat_cms.cms.urls.protected.user_settings_urlpatterns: list[URLPattern] = [<URLResolver <URLPattern list> (None:None) 'user-settings/'>][source]
The user setting url patterns are reused twice (for the staff area and the region area)
[<URLResolver <URLPattern list> (None:None) 'user-settings/'>]
Public
URLconf for public views of the cms package. These urls are whitelisted and excluded from the
AccessControlMiddleware
.
Views which should have login protection go into protected
.
Since urls of this module have an individual namespace (see app_name
), this
namespace needs to be appended on any {% url %}
tags in templates or calls of reverse()
or redirect()
in the
views, e.g.:
{% url 'public:login' %}
redirect("public:login")
reverse_lazy("public:login")
- integreat_cms.cms.urls.public.app_name: Final = 'public'[source]
The namespace for this URL config (see
django.urls.ResolverMatch.app_name
)
- integreat_cms.cms.urls.public.auth_context: dict[str, str] = {'COMPANY': 'Tür an Tür – Digitalfabrik gGmbH', 'COMPANY_URL': 'https://tuerantuer.de/digitalfabrik/'}[source]
The extra context passed to auth views
{ 'COMPANY': 'Tür an Tür – Digitalfabrik gGmbH', 'COMPANY_URL': 'https://tuerantuer.de/digitalfabrik/', }
- integreat_cms.cms.urls.public.urlpatterns: list[URLPattern] = [<URLPattern '' [name='region_selection']>, <URLResolver <URLPattern list> (None:None) 's/'>, <URLResolver <URLPattern list> (None:None) 'login/'>, <URLPattern 'logout/' [name='logout']>, <URLResolver <URLPattern list> (None:None) 'reset-password/'>, <URLPattern 'activate-account/<uidb64>/<token>/' [name='activate_account']>, <URLPattern 'wiki/' [name='wiki_redirect']>, <URLPattern 'favicon.ico'>][source]
The url patterns of this module (see URL dispatcher)
[ <URLPattern '' [name='region_selection']>, <URLResolver <URLPattern list> (None:None) 's/'>, <URLResolver <URLPattern list> (None:None) 'login/'>, <URLPattern 'logout/' [name='logout']>, <URLResolver <URLPattern list> (None:None) 'reset-password/'>, <URLPattern 'activate-account/<uidb64>/<token>/' [name='activate_account']>, <URLPattern 'wiki/' [name='wiki_redirect']>, <URLPattern 'favicon.ico'>, ]