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
This commit is contained in:
parent
cf61f2b59b
commit
b72742764f
|
@ -34,6 +34,8 @@ ADMINS = (
|
|||
('Ryan Cross', 'rcross@amsl.com'),
|
||||
)
|
||||
|
||||
ALLOWED_HOSTS = ["datatracker.ietf.org"]
|
||||
|
||||
# Server name of the tools server
|
||||
TOOLS_SERVER = 'tools.' + IETF_DOMAIN
|
||||
|
||||
|
@ -98,6 +100,11 @@ AUTHENTICATION_BACKENDS = ( 'django.contrib.auth.backends.RemoteUserBackend', )
|
|||
|
||||
#DATABASE_ROUTERS = ["ietf.legacy_router.LegacyRouter"]
|
||||
|
||||
# enable HTML error emails
|
||||
from django.utils.log import DEFAULT_LOGGING
|
||||
LOGGING = DEFAULT_LOGGING.copy()
|
||||
LOGGING['handlers']['mail_admins']['include_html'] = True
|
||||
|
||||
SESSION_COOKIE_AGE = 43200 # 12 hours
|
||||
SESSION_EXPIRE_AT_BROWSER_CLOSE = True
|
||||
|
||||
|
|
Loading…
Reference in a new issue