mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-14 12:08:04 +00:00
No mailgun related settings if test or collectstatic
This commit is contained in:
@@ -82,11 +82,11 @@ BOOTSTRAP4 = {
|
||||
},
|
||||
}
|
||||
|
||||
if not 'test' in sys.argv and not 'collectstatic' in sys.argv:
|
||||
ANYMAIL = {
|
||||
'MAILGUN_API_KEY': os.environ['IVATAR_MAILGUN_API_KEY'],
|
||||
'MAILGUN_SENDER_DOMAIN': os.environ['IVATAR_MAILGUN_SENDER_DOMAIN'],
|
||||
}
|
||||
if not 'test' in sys.argv and not 'collectstatic' in sys.argv:
|
||||
EMAIL_BACKEND = 'anymail.backends.mailgun.EmailBackend'
|
||||
DEFAULT_FROM_EMAIL = 'ivatar@linux-kernel.at'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user