summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorMike Edmunds <medmunds@gmail.com>2025-02-14 10:58:01 -0800
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-03-21 10:17:57 +0100
commite295033144e3085abaf9277d1bb0a6436ce73e01 (patch)
tree582ec2ccaf6440a27c5bff5f6b73db2c8e5bd4ea /docs/ref
parentaed303aff57ac990894b6354af001b0e8ea55f71 (diff)
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.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/settings.txt12
1 files changed, 10 insertions, 2 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index ab82b539b0..e6fa3f4221 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -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``