Hi,
I did the virtualenv installation on Debian trixie.
I got mailmanweb running, created a superuser, could login into https://my.site.net/admin (after resolving CSRF errors).
I created a new site (my.site.net) in Django, deleted example.com and changed SITE_ID to 0 in /etc/mailman3/settings.py .
After restarting mailman3 and mailmanweb services I get Server error,An error occurred while processing your request. when I call https://my.site.net/admin again.
Even if I change SITE_ID back to 1 there is no change.
What have I done wrong? I haven't found any solution on the internet. And, even more important, how get I get it working again?
Thank you for your help.
Flo.
On 6/21/26 14:19, Flo via Mailman-users wrote:
I did the virtualenv installation on Debian trixie.
I got mailmanweb running, created a superuser, could login into https:// my.site.net/admin (after resolving CSRF errors).
I created a new site (my.site.net) in Django, deleted example.com and changed SITE_ID to 0 in /etc/mailman3/settings.py .
After restarting mailman3 and mailmanweb services I get Server error,An error occurred while processing your request. when I call https://my.site.net/admin again.
Even if I change SITE_ID back to 1 there is no change.
Two things to try:
Did you had your hostname to ALLOWED_HOSTS?
Temporarily set DEBUG to True in settings.py, it should let you see a stacktrace from the web gui. Keep in mind:
https://docs.djangoproject.com/en/6.0/ref/settings/
It is also important to remember that when running with DEBUG turned on, Django will remember every SQL query it executes. This is useful when you’re debugging, but it’ll rapidly consume memory on a production server.
also:
Finally, if DEBUG is False, you also need to properly set the
ALLOWED_HOSTS setting. Failing to do so will result in all
requests being returned as “Bad Request (400)”.
On 6/21/26 2:19 PM, Flo via Mailman-users wrote:
I created a new site (my.site.net) in Django, deleted example.com and changed SITE_ID to 0 in /etc/mailman3/settings.py .
After restarting mailman3 and mailmanweb services I get Server error,An error occurred while processing your request. when I call https://my.site.net/admin again.
Even if I change SITE_ID back to 1 there is no change.
Do this database query on Mailman's database
SELECT * FROM django_site;
Then set SITE_ID to number associated with your domain.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (3)
-
Flo -
mailman26@xse.com -
Mark Sapiro