Minor changes to make the code compatible with django 4.0 Note that we can't actually upgrade to django 4.0 because that requires python 3.8, and www.eleves only has python 3.7, so we need to upgrade www.eleves first.
22 lines
656 B
Python
22 lines
656 B
Python
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
|