mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +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:
parent
aed303aff5
commit
e295033144
10 changed files with 102 additions and 52 deletions
|
|
@ -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``
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue