from allauth_ens.views import capture_login, capture_logout from django.contrib import admin from django.urls import include, path allauth_urls = [ # Catch login/logout views of admin site. path("_admin/login/", capture_login), path("_admin/logout/", capture_logout), # Allauth urls. path("_profil/", include("allauth.urls")), ] urlpatterns = allauth_urls + [ path("_admin/", admin.site.urls), path("notifications/", include("django_nyt.urls")), path("_groups/", include("wiki_groups.urls")), path("", include("wiki.urls")), ] # TODO add MEDIA_ROOT