From e00436fbd67fe1f47d5b21279101b127265ebcb0 Mon Sep 17 00:00:00 2001 From: Thomas Makin Date: Tue, 19 Dec 2023 19:26:56 -0500 Subject: [PATCH] postorius: fix urls for newer django `path()` no longer accepts regex paths; you must instead import and use `re_path()`. --- postorius/mailman-web/urls.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/postorius/mailman-web/urls.py b/postorius/mailman-web/urls.py index 6a9bbaf..3e3c312 100644 --- a/postorius/mailman-web/urls.py +++ b/postorius/mailman-web/urls.py @@ -18,16 +18,16 @@ from django.conf.urls import include from django.contrib import admin -from django.urls import path, reverse_lazy +from django.urls import re_path, reverse_lazy from django.views.generic import RedirectView urlpatterns = [ - path(r'^$', RedirectView.as_view( + re_path(r'^$', RedirectView.as_view( url=reverse_lazy('list_index'), permanent=True)), - path(r'postorius/', include('postorius.urls')), - path(r'', include('django_mailman3.urls')), - path(r'accounts/', include('allauth.urls')), + re_path(r'postorius/', include('postorius.urls')), + re_path(r'', include('django_mailman3.urls')), + re_path(r'accounts/', include('allauth.urls')), # Django admin - path(r'^admin/', admin.site.urls), + re_path(r'^admin/', admin.site.urls), ]