3👍
✅
The setting DJANGO_MAILGUN_SERVER_NAME
should be a domain name, not a url.
Try the following:
os.environ['DJANGO_MAILGUN_SERVER_NAME'] = '<sandboxnumbersomething>.mailgun.org'
From the readme:
Replace
SERVER-NAME
with the last part of your “API Base URL” (e.g.https://api.mailgun.net/v3/<your_server_name>
), also found in your Mailgun account details.
Source:stackexchange.com