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