mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
Move MANDRILL_API_URL to package root (out of backend)
This commit is contained in:
@@ -5,7 +5,7 @@ from django.core.exceptions import ImproperlyConfigured
|
||||
from django.utils import simplejson as json
|
||||
from django.views.generic import TemplateView
|
||||
|
||||
from djrill.mail.backends.djrill import MANDRILL_API_URL
|
||||
from djrill import MANDRILL_API_URL
|
||||
|
||||
import requests
|
||||
|
||||
@@ -25,7 +25,7 @@ class DjrillApiMixin(object):
|
||||
"""
|
||||
def __init__(self):
|
||||
self.api_key = getattr(settings, "MANDRILL_API_KEY", None)
|
||||
self.api_url = getattr(settings, "MANDRILL_API_URL", MANDRILL_API_URL)
|
||||
self.api_url = MANDRILL_API_URL
|
||||
|
||||
if not self.api_key:
|
||||
raise ImproperlyConfigured("You have not set your mandrill api key "
|
||||
|
||||
Reference in New Issue
Block a user