From 04d940534d16edb9b3e5346144d7a18d1e6902ed Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 31 Jan 2014 19:07:37 +0000 Subject: [PATCH] Modified ALLOWED_HOSTS to permit some (surprising) alternative HTTP_HOST names. Are these a result of queries proxied through other ietf.org domains? The numerical address is the mail server address. We should find out why that appears, and see if it can be made to appear as mail.ietf.org instead. - Legacy-Id: 7197 --- ietf/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ietf/settings.py b/ietf/settings.py index 30fc92fb3..b354a771f 100644 --- a/ietf/settings.py +++ b/ietf/settings.py @@ -34,7 +34,7 @@ ADMINS = ( ('Ryan Cross', 'rcross@amsl.com'), ) -ALLOWED_HOSTS = ["datatracker.ietf.org"] +ALLOWED_HOSTS = [".ietf.org", "4.31.198.44", ] # Server name of the tools server TOOLS_SERVER = 'tools.' + IETF_DOMAIN @@ -107,6 +107,7 @@ LOGGING['handlers']['mail_admins']['include_html'] = True SESSION_COOKIE_AGE = 43200 # 12 hours SESSION_EXPIRE_AT_BROWSER_CLOSE = True +SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer' TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader',