Hi folks,
I'm trying to hide the custom 404 error messages from Django.
Page not found (404) Request Method: GET Request URL: http://......./non-existent-2008020390
Using the URLconf defined in mailman_web.urls, Django tried these URL patterns, in this order:
mailman3/
archives/
^user-profile/delete$ [name='mm_user_account_delete']
^user-profile/$ [name='mm_user_profile']
accounts/
admin/
postorius/
hyperkitty/
The current path, non-existent-2008020390, didn’t match any of these.
You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
Switching DEBUG=True (currently set in settings.py) to false does indeed hide additional debugging output, but following pages are not accessible anymore (Server Error).
user-profile/ accounts/logout/ hyperkitty/
Switching back to DEBUG=True brings back accessibility.
This is
Mailman Core-Version GNU Mailman 3.3.9 (Tom Sawyer) Mailman Core API-Version 3.1 Mailman Core Python-Version 3.10.12 (main, Sep 11 2024, 15:47:36) [GCC 11.4.0]
any help is greatly appreciated.
Thank you.
Stefan