mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
working
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from django.conf import settings
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.http import HttpResponse
|
||||
from django.utils import simplejson as json
|
||||
from django.views.generic import View
|
||||
@@ -26,6 +25,6 @@ class DjrillIndexView(View):
|
||||
"url to your settings.py")
|
||||
|
||||
payload = json.dumps({"key": api_key})
|
||||
r = requests.post("%susers/info.json" % api_url, data=payload)
|
||||
r = requests.post("%s/users/info.json" % api_url, data=payload)
|
||||
|
||||
return HttpResponse(r.content)
|
||||
|
||||
Reference in New Issue
Block a user