Production ALLOWED_HOSTS settings now defaults to a safer ['127.0.0.1', 'localhost', '[::1]']

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-04-11 20:41:25 -04:00
parent 59d958982f
commit be73264341
3 changed files with 3 additions and 1 deletions

View File

@@ -151,6 +151,7 @@
- Add the option to enable or disable parsing when uploading a document for each document type. - Add the option to enable or disable parsing when uploading a document for each document type.
- Add a new setting option to enable automatic parsing for each new document type created. - Add a new setting option to enable automatic parsing for each new document type created.
- Add support for HTML bodies to the user mailers. - Add support for HTML bodies to the user mailers.
- Production ALLOWED_HOSTS settings now defaults to a safer ['127.0.0.1', 'localhost', '[::1]']
2.7.3 (2017-09-11) 2.7.3 (2017-09-11)
================== ==================

View File

@@ -470,6 +470,7 @@ Other changes worth mentioning
- Add the option to enable or disable parsing when uploading a document for each document type. - Add the option to enable or disable parsing when uploading a document for each document type.
- Add a new setting option to enable automatic parsing for each new document type created. - Add a new setting option to enable automatic parsing for each new document type created.
- Add support for HTML bodies to the user mailers. - Add support for HTML bodies to the user mailers.
- Production ALLOWED_HOSTS settings now defaults to a safer ['127.0.0.1', 'localhost', '[::1]']
Removals Removals
-------- --------

View File

@@ -4,7 +4,7 @@ from . import * # NOQA
# Update this accordingly; # Update this accordingly;
# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts # https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = ['*'] ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '[::1]']
TEMPLATES[0]['OPTIONS']['loaders'] = ( TEMPLATES[0]['OPTIONS']['loaders'] = (
( (