Move ALLOWED_HOSTS into local settings (djangocommonsettings.py)

This commit is contained in:
Ben Sturmfels 2024-02-06 21:59:31 +11:00
parent e246c530c4
commit 4a2ed6714a
Signed by: bsturmfels
GPG key ID: 023C05E2C9C068F0

View file

@ -26,10 +26,6 @@ ROOT_URLCONF = 'conservancy.urls'
FORCE_CANONICAL_HOSTNAME = False if DEBUG else 'sfconservancy.org'
ALLOWED_HOSTS = ['www.sfconservancy.org', 'sfconservancy.org']
if DEBUG:
ALLOWED_HOSTS = ['*']
REDIRECT_TABLE = {
'www.sf-conservancy.org': 'sfconservancy.org',
}