deps: move to django-anymail :crossed-fingers:
This commit is contained in:
parent
e4f92d6d48
commit
43ef67c8d7
2 changed files with 6 additions and 6 deletions
|
@ -35,11 +35,13 @@ MEDIA_URL = 'https://s3.amazonaws.com/%s/' % AWS_STORAGE_BUCKET_NAME
|
||||||
|
|
||||||
STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
|
STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
|
||||||
|
|
||||||
|
ANYMAIL = {
|
||||||
|
MAILGUN_API_KEY: env('DJANGO_MAILGUN_API_KEY')
|
||||||
|
MAILGUN_SENDER_DOMAIN: env('DJANGO_MAILGUN_SERVER_NAME')
|
||||||
|
}
|
||||||
DEFAULT_FROM_EMAIL = env('DJANGO_DEFAULT_FROM_EMAIL',
|
DEFAULT_FROM_EMAIL = env('DJANGO_DEFAULT_FROM_EMAIL',
|
||||||
default='CCDB Admin <noreply@ccdb.info>')
|
default='CCDB Admin <noreply@ccdb.info>')
|
||||||
EMAIL_BACKEND = 'django_mailgun.MailgunBackend'
|
EMAIL_BACKEND = 'anymail.backends.mailgun.EmailBackend'
|
||||||
MAILGUN_ACCESS_KEY = env('DJANGO_MAILGUN_API_KEY')
|
|
||||||
MAILGUN_SERVER_NAME = env('DJANGO_MAILGUN_SERVER_NAME')
|
|
||||||
EMAIL_SUBJECT_PREFIX = env("DJANGO_EMAIL_SUBJECT_PREFIX", default='[ccdb] ')
|
EMAIL_SUBJECT_PREFIX = env("DJANGO_EMAIL_SUBJECT_PREFIX", default='[ccdb] ')
|
||||||
SERVER_EMAIL = env('DJANGO_SERVER_EMAIL', default=DEFAULT_FROM_EMAIL)
|
SERVER_EMAIL = env('DJANGO_SERVER_EMAIL', default=DEFAULT_FROM_EMAIL)
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,4 @@ gunicorn==19.7.1
|
||||||
# Static and Media Storage
|
# Static and Media Storage
|
||||||
boto==2.48.0
|
boto==2.48.0
|
||||||
django-storages-redux==1.3.3
|
django-storages-redux==1.3.3
|
||||||
|
django-anymail[mailgun]
|
||||||
# Mailgun Support
|
|
||||||
django-mailgun>=0.9.1
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue