1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #36138 -- Changed ADMINS and MANAGERS settings to lists of strings.

Previously, the ADMINS and MANAGERS settings were lists of (name, address)
tuples (where the name had been unused). Deprecated use of tuples.

Updated settings value sanity checks, and changed from ValueError to
ImproperlyConfigured.
This commit is contained in:
Mike Edmunds
2025-02-14 10:58:01 -08:00
committed by Sarah Boyce
parent aed303aff5
commit e295033144
10 changed files with 102 additions and 52 deletions

View File

@@ -52,9 +52,13 @@ A list of all the people who get code error notifications. When
is configured in :setting:`LOGGING` (done by default), Django emails these
people the details of exceptions raised in the request/response cycle.
Each item in the list should be a tuple of (Full name, email address). Example::
Each item in the list should be an email address string. Example::
[("John", "john@example.com"), ("Mary", "mary@example.com")]
ADMINS = ["john@example.com", '"Ng, Mary" <mary@example.com>']
.. versionchanged:: 6.0
In older versions, required a list of (name, address) tuples.
.. setting:: ALLOWED_HOSTS
@@ -2074,6 +2078,10 @@ A list in the same format as :setting:`ADMINS` that specifies who should get
broken link notifications when
:class:`~django.middleware.common.BrokenLinkEmailsMiddleware` is enabled.
.. versionchanged:: 6.0
In older versions, required a list of (name, address) tuples.
.. setting:: MEDIA_ROOT
``MEDIA_ROOT``