mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
should be working
This commit is contained in:
@@ -2,6 +2,7 @@ from django.conf import settings
|
|||||||
from django.core.exceptions import ImproperlyConfigured
|
from django.core.exceptions import ImproperlyConfigured
|
||||||
from django.core.urlresolvers import reverse
|
from django.core.urlresolvers import reverse
|
||||||
from django.http import HttpResponse
|
from django.http import HttpResponse
|
||||||
|
from django.utils import simplejson as json
|
||||||
from django.views.generic import View
|
from django.views.generic import View
|
||||||
|
|
||||||
try:
|
try:
|
||||||
@@ -24,11 +25,7 @@ class DjrillIndexView(View):
|
|||||||
raise ImproperlyConfigured("You have not added the Mandrill api "
|
raise ImproperlyConfigured("You have not added the Mandrill api "
|
||||||
"url to your settings.py")
|
"url to your settings.py")
|
||||||
|
|
||||||
import pdb
|
payload = json.dumps({"key": api_key})
|
||||||
pdb.set_trace()
|
r = requests.post("%susers/info.json" % api_url, data=payload)
|
||||||
r = requests.get("%susers/info.json" % api_url, data={"key": api_key})
|
|
||||||
|
|
||||||
return HttpResponse(r)
|
return HttpResponse(r.content)
|
||||||
|
|
||||||
def admin_list_view(request):
|
|
||||||
return HttpResponse("Djrill Index")
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ DATABASES = {
|
|||||||
|
|
||||||
# MANDRILL API KEY
|
# MANDRILL API KEY
|
||||||
MANDRILL_API_KEY = ""
|
MANDRILL_API_KEY = ""
|
||||||
MANDRILL_API_URL = "https://mandrillapp.com/api/1.0/"
|
MANDRILL_API_URL = "https://mandrillapp.com/api/1.0"
|
||||||
|
|
||||||
|
|
||||||
# Local time zone for this installation. Choices can be found here:
|
# Local time zone for this installation. Choices can be found here:
|
||||||
|
|||||||
Reference in New Issue
Block a user