Skip to content

Commit b727427

Browse files
committed
Set ALLOWED_HOSTS (may need some tweaking), add LOGGING setting to
enable HTML exception emails to compensate for not carrying the HTML patch that was applied to Django 1.2 - Legacy-Id: 6982
1 parent cf61f2b commit b727427

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

ietf/settings.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
('Ryan Cross', 'rcross@amsl.com'),
3535
)
3636

37+
ALLOWED_HOSTS = ["datatracker.ietf.org"]
38+
3739
# Server name of the tools server
3840
TOOLS_SERVER = 'tools.' + IETF_DOMAIN
3941

@@ -98,6 +100,11 @@
98100

99101
#DATABASE_ROUTERS = ["ietf.legacy_router.LegacyRouter"]
100102

103+
# enable HTML error emails
104+
from django.utils.log import DEFAULT_LOGGING
105+
LOGGING = DEFAULT_LOGGING.copy()
106+
LOGGING['handlers']['mail_admins']['include_html'] = True
107+
101108
SESSION_COOKIE_AGE = 43200 # 12 hours
102109
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
103110

0 commit comments

Comments
 (0)