mirror of
https://github.com/pacnpal/django-anymail.git
synced 2025-12-20 11:51:05 -05:00
Don't access MANDRILL_API_URL setting at module level
Move MANDRILL_API_URL setting lookup into Djrill backend init (where it's used). Because "modules should not in general use settings stored in django.conf.settings at the top level". https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/#use-of-django-conf-settings
This commit is contained in:
@@ -1,10 +1,2 @@
|
||||
from django.conf import settings
|
||||
|
||||
from djrill.exceptions import MandrillAPIError, NotSupportedByMandrillError
|
||||
from ._version import __version__, VERSION
|
||||
|
||||
|
||||
# This backend was developed against this API endpoint.
|
||||
# You can override in settings.py, if desired.
|
||||
MANDRILL_API_URL = getattr(settings, "MANDRILL_API_URL",
|
||||
"https://mandrillapp.com/api/1.0")
|
||||
|
||||
Reference in New Issue
Block a user