From ce26313905fa5d5c141cc7a871d37e1740765df1 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Thu, 24 Apr 2014 00:14:11 +0800 Subject: * added 'ADMINS' and 'MANAGERS' settings to settings_production.py * added templates 400, 404, 404 and 500 --- django_skaschool/settings_production.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'django_skaschool') diff --git a/django_skaschool/settings_production.py b/django_skaschool/settings_production.py index aa26ac3..80eaedf 100644 --- a/django_skaschool/settings_production.py +++ b/django_skaschool/settings_production.py @@ -150,6 +150,18 @@ MEDIA_URL = '/media/' ## email settings from settings_email import * +## ADMINS: notified 500 error by emails +# When DEBUG=False and a view raises an exception, django will +# email these people with full exception information. +ADMINS = ( + ('admin', 'skaschool2014@163.com'), +) + +## MANAGERS: notified of 404 errors +# Specifies who should get broken link notifications when +# 'BrokenLinkEmailsMiddleware' is enabled. +MANAGERS = ADMINS + ################################################# ## bootstrap3 -- cgit v1.2.2