mailman3-web 0+20200530-2.1 fails to install
Bug #2060276 reported by
Marco van Zwetselaar
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mailman-suite (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Installing mailman3-web on mantic fails with:
File "/usr/share/
from django.conf.urls import include, url
ImportError: cannot import name 'url' from 'django.conf.urls' (/usr/lib/
dpkg: error processing package mailman3-web (--configure):
installed mailman3-web package post-installation script subprocess returned error exit status 1
The error is due to deprecation of url in django.conf.urls, see here: https:/
The fix is to replace it with re_path from django.urls. Patch for /usr/share/
To post a comment you must log in.
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.