django-primer.rst references Django 3.2 Settings, instead of 4.1
Now Postorious/Hyperkitty/django-mailman3 support Django 4.1. The configurations of Django 4.1 and 3.2 differ.
- for urls.py
from django.conf.urls import include, url
shall be changed tofrom django.urls import include, re_path
andurl()
replaced with re_path()`. - in settings.py I had previously no CSRF_TRUSTED_ORIGINS, but now a list of handled hostnames is required, with https:// prefix for each host.
https://docs.mailman3.org/en/latest/django-primer.html#django-upstream-settings links to https://docs.djangoproject.com/en/3.2/ref/settings/ . I think it shall link to https://docs.djangoproject.com/en/4.1/ref/settings/ , so that users can create the settings.py for Django 4.1. But this is also subjective, as in the foreseeable future Linux distributions will include old mailman suite, which does not work with Django 4.1.