Permalink
Browse files

provide smtp configuration so that admins receive an e-mail if an err…

…or occurs (500 page, or 404 with non-empty referrer)
  • Loading branch information...
1 parent 265ba3b commit 220e3ef3e8797585e73f1c0ee66a078382738bd8 @dound committed Jan 27, 2010
Showing with 6 additions and 1 deletion.
  1. +6 −1 web/settings.py
View
@@ -1,12 +1,17 @@
import os
+import socket
DEBUG = TEMPLATE_DEBUG = False
+# information about who to e-mail and how in case of a problem
ADMINS = (
('David Underhill', 'dgu@cs.stanford.edu'),
)
-
MANAGERS = ADMINS
+EMAIL_HOST = 'smtp.stanford.edu'
+SEND_BROKEN_LINK_EMAILS = True
+SERVER_EMAIL = 'vns-django@' + socket.gethostname() + '.stanford.edu'
+
PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))
DATABASES = {

0 comments on commit 220e3ef

Please sign in to comment.