2024-10-22 08:52:15 +02:00
|
|
|
from allauth_ens.views import capture_login, capture_logout
|
|
|
|
from django.contrib import admin
|
2024-10-22 10:50:33 +02:00
|
|
|
from django.urls import include, path
|
2024-10-22 08:52:15 +02:00
|
|
|
|
|
|
|
allauth_urls = [
|
|
|
|
# Catch login/logout views of admin site.
|
2024-10-22 10:50:33 +02:00
|
|
|
path("admin/login/", capture_login),
|
|
|
|
path("admin/logout/", capture_logout),
|
2024-10-22 08:52:15 +02:00
|
|
|
# Allauth urls.
|
2024-10-22 10:50:33 +02:00
|
|
|
path("profil/", include("allauth.urls")),
|
2024-10-22 08:52:15 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
urlpatterns = allauth_urls + [
|
2024-10-22 10:50:33 +02:00
|
|
|
path("_admin/", admin.site.urls),
|
|
|
|
path("notifications/", include("django_nyt.urls")),
|
|
|
|
path("_groups/", include("wiki_groups.urls")),
|
|
|
|
path("", include("wiki.urls")),
|
2024-10-22 08:52:15 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
# TODO add MEDIA_ROOT
|