use MANDRILL_SUBACCOUNT to match the API field

This commit is contained in:
Michael Hobbs
2014-04-11 14:24:31 -07:00
parent cd8c2b8760
commit 21e8727b1d

View File

@@ -49,8 +49,8 @@ class DjrillBackend(BaseEmailBackend):
super(DjrillBackend, self).__init__(**kwargs) super(DjrillBackend, self).__init__(**kwargs)
self.api_key = getattr(settings, "MANDRILL_API_KEY", None) self.api_key = getattr(settings, "MANDRILL_API_KEY", None)
self.api_url = MANDRILL_API_URL self.api_url = MANDRILL_API_URL
self.subaccount = getattr(settings, "MANDRILL_SUB_ACCOUNT", None) self.subaccount = getattr(settings, "MANDRILL_SUBACCOUNT", None)
if not self.api_key: if not self.api_key:
raise ImproperlyConfigured("You have not set your mandrill api key " raise ImproperlyConfigured("You have not set your mandrill api key "