aboutsummaryrefslogtreecommitdiffstats
path: root/django_skaschool
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-24 00:14:11 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-24 00:14:11 +0800
commitce26313905fa5d5c141cc7a871d37e1740765df1 (patch)
treec1b63a66acd633374be61a1fdc638e20e4953bb2 /django_skaschool
parent9a4e3be3f042e39a72e5d8f2f791d437d74051a5 (diff)
downloaddjango-skaschool-ce26313905fa5d5c141cc7a871d37e1740765df1.tar.bz2
* added 'ADMINS' and 'MANAGERS' settings to settings_production.py
* added templates 400, 404, 404 and 500
Diffstat (limited to 'django_skaschool')
-rw-r--r--django_skaschool/settings_production.py12
1 files changed, 12 insertions, 0 deletions
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