There is an even less invasive fix, namely to use 'import as' and import re_path as url:
--- /usr/share/mailman3-web/urls.py.orig 2024-04-05 07:56:38.119113883 +0000 +++ /usr/share/mailman3-web/urls.py 2024-04-05 08:09:09.912489281 +0000 @@ -17,7 +17,8 @@ # Postorius. If not, see <http://www.gnu.org/licenses/>.
-from django.conf.urls import include, url +from django.conf.urls import include +from django.urls import re_path as url from django.contrib import admin from django.urls import reverse_lazy from django.views.generic import RedirectView
There is an even less invasive fix, namely to use 'import as' and import re_path as url:
--- /usr/share/ mailman3- web/urls. py.orig 2024-04-05 07:56:38.119113883 +0000 mailman3- web/urls. py 2024-04-05 08:09:09.912489281 +0000 www.gnu. org/licenses/>.
+++ /usr/share/
@@ -17,7 +17,8 @@
# Postorius. If not, see <http://
-from django.conf.urls import include, url views.generic import RedirectView
+from django.conf.urls import include
+from django.urls import re_path as url
from django.contrib import admin
from django.urls import reverse_lazy
from django.