Use a different postmark backend

master
Nick Sergeant 2011-12-04 20:31:33 -05:00
parent 4b78dd1490
commit 95ec2fabf5
3 changed files with 2 additions and 5 deletions

View File

@ -5,7 +5,6 @@ django-annoying
django-bcrypt
django-grappelli
django-pagination
django-postmark
django-registration
django-storages
django-taggit
@ -17,6 +16,7 @@ lxml
psycopg2
Pygments
python-memcached
python-postmark
pyyaml
South
uuid

View File

@ -176,7 +176,7 @@ LOGGING = {
}
# Email
EMAIL_BACKEND = 'postmark.backends.PostmarkBackend'
EMAIL_BACKEND = 'postmark.django_backend.EmailBackend'
POSTMARK_API_KEY = '608d3101-1706-4a96-819f-f2f36fe00fe0'
SEND_BROKEN_LINK_EMAILS = True

View File

@ -7,9 +7,6 @@ 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: