test
parent
a3ed49b427
commit
12a6f24f65
|
@ -5,7 +5,7 @@ import os, socket
|
||||||
if socket.gethostname() in ['nickmba.local', 'nickimac.local']:
|
if socket.gethostname() in ['nickmba.local', 'nickimac.local']:
|
||||||
DEBUG = True
|
DEBUG = True
|
||||||
else:
|
else:
|
||||||
DEBUG = False
|
DEBUG = True
|
||||||
TEMPLATE_DEBUG = DEBUG
|
TEMPLATE_DEBUG = DEBUG
|
||||||
BASE_PATH = os.path.dirname(__file__)
|
BASE_PATH = os.path.dirname(__file__)
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,9 @@ from snipts.models import Snipt
|
||||||
from taggit.models import Tag
|
from taggit.models import Tag
|
||||||
|
|
||||||
def home(request):
|
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():
|
if request.user.is_authenticated():
|
||||||
return HttpResponseRedirect('/%s/' % request.user.username)
|
return HttpResponseRedirect('/%s/' % request.user.username)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue