chore: improve ALLOWED_HOSTS in settings (ports are not useful there) (#4232)

This commit is contained in:
Robert Sparks 2022-07-20 15:16:14 -05:00 committed by GitHub
parent 99d4e16b30
commit ffe824b7cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ PASSWORD_HASHERS = [
'django.contrib.auth.hashers.CryptPasswordHasher',
]
ALLOWED_HOSTS = [".ietf.org", ".ietf.org.", "209.208.19.216", "4.31.198.44", "127.0.0.1", "localhost:8000", ]
ALLOWED_HOSTS = [".ietf.org", ".ietf.org.", "209.208.19.216", "4.31.198.44", "127.0.0.1", "localhost", ]
# Server name of the tools server
TOOLS_SERVER = 'tools.' + IETF_DOMAIN

View file

@ -59,7 +59,7 @@ CACHES = {
PASSWORD_HASHERS = [ 'django.contrib.auth.hashers.MD5PasswordHasher', ]
SERVER_MODE = 'test'
ALLOWED_HOSTS = ["127.0.0.1", "localhost:8000", "testserver", ]
ALLOWED_HOSTS = ["127.0.0.1", "localhost", "testserver", ]
SILENCED_SYSTEM_CHECKS = [
"fields.W342", # Setting unique=True on a ForeignKey has the same effect as using a OneToOneField.