Use a different postmark backend
parent
4b78dd1490
commit
95ec2fabf5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue