test
parent
a3ed49b427
commit
12a6f24f65
|
@ -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__)
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue