summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--AUTHORS1
-rw-r--r--docs/ref/request-response.txt4
2 files changed, 5 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
index ab75707e7e..6af620f768 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -854,6 +854,7 @@ answer newbie questions, and generally made Django that much better:
sloonz <simon.lipp@insa-lyon.fr>
smurf@smurf.noris.de
sopel
+ Sreehari K V <sreeharivijayan619@gmail.com>
Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com>
Stanislas Guerra <stan@slashdev.me>
Stanislaus Madueke
diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt
index 4528373b8c..9595161671 100644
--- a/docs/ref/request-response.txt
+++ b/docs/ref/request-response.txt
@@ -290,6 +290,10 @@ Methods
Example: ``"127.0.0.1:8000"``
+ Raises ``django.core.exceptions.DisallowedHost`` if the host is not in
+ :setting:`ALLOWED_HOSTS` or the domain name is invalid according to
+ :rfc:`1034`/:rfc:`1035 <1035>`.
+
.. note:: The :meth:`~HttpRequest.get_host()` method fails when the host is
behind multiple proxies. One solution is to use middleware to rewrite
the proxy headers, as in the following example::