Skip to content

Commit a57743c

Browse files
committed
[1.4.x] Note that ALLOWED_HOSTS default changes in Django 1.5.
1 parent a6927d8 commit a57743c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/ref/settings.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ This validation only applies via :meth:`~django.http.HttpRequest.get_host()`;
118118
if your code accesses the ``Host`` header directly from ``request.META`` you
119119
are bypassing this security protection.
120120

121+
The default value of this setting in Django 1.3.6+ is ``['*']`` (accept any
122+
host) in order to avoid breaking backwards-compatibility in a security update,
123+
but in Django 1.5+ the default is ``[]`` and explicitly configuring this
124+
setting is required.
125+
121126
.. setting:: ALLOWED_INCLUDE_ROOTS
122127

123128
ALLOWED_INCLUDE_ROOTS

0 commit comments

Comments
 (0)