From 12a6f24f65c108c3b60b7ecd8582c46fa4e04be6 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Sun, 4 Dec 2011 20:22:22 -0500 Subject: [PATCH] test --- snipt/settings.py | 2 +- snipt/snipts/views.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/snipt/settings.py b/snipt/settings.py index ac99b7e..8129b14 100644 --- a/snipt/settings.py +++ b/snipt/settings.py @@ -5,7 +5,7 @@ import os, socket if socket.gethostname() in ['nickmba.local', 'nickimac.local']: DEBUG = True else: - DEBUG = False + DEBUG = True TEMPLATE_DEBUG = DEBUG BASE_PATH = os.path.dirname(__file__) diff --git a/snipt/snipts/views.py b/snipt/snipts/views.py index bef9cd2..b305963 100644 --- a/snipt/snipts/views.py +++ b/snipt/snipts/views.py @@ -7,6 +7,9 @@ from snipts.models import Snipt from taggit.models import Tag def home(request): + from django.core.mail import send_mail + send_mail('Subject here', 'Here is the message.', 'site@snipt.net', + ['nick@nicksergeant.com'], fail_silently=False) if request.user.is_authenticated(): return HttpResponseRedirect('/%s/' % request.user.username) else: