website/kumisystems/urls.py

20 lines
695 B
Python
Raw Normal View History

2023-07-07 14:51:24 +00:00
from django.contrib import admin
2023-07-08 11:06:15 +00:00
from django.urls import path, include
from django.views.i18n import JavaScriptCatalog
from django.conf.urls.i18n import i18n_patterns
2023-07-08 14:51:05 +00:00
from django.conf import settings
2023-07-07 14:51:24 +00:00
2023-07-08 14:51:05 +00:00
urlpatterns = [
path("oidc/", include("mozilla_django_oidc.urls")),
] + i18n_patterns(
path("admin/", admin.site.urls),
path("", include("cms.urls")),
path("jsi18n/", JavaScriptCatalog.as_view(), name="javascript-catalog"),
)
if settings.USE_OIDC:
from mozilla_django_oidc.views import OIDCAuthenticationRequestView
urlpatterns = i18n_patterns(
path('admin/login/', OIDCAuthenticationRequestView.as_view(), name='oidc_authentication_init'),
) + urlpatterns