master
Nick Sergeant 2011-12-04 20:22:22 -05:00
parent a3ed49b427
commit 12a6f24f65
2 changed files with 4 additions and 1 deletions

View File

@ -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__)

View File

@ -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: