Simple EmailBackend for Django to work with Microsoft Exchange Online, via o365 package.
Currently only OAuth2.0 authentication with credentials workflow is supported.
Following Django settings need to be added:
EMAIL_O365_TENANT_ID = 'my-client'
EMAIL_O365_CLIENT_ID = 'my-client-id'
EMAIL_O365_CLIENT_SECRET = 'super-secret'
EMAIL_O365_SENDER = '[email protected]'
# set backend
EMAIL_BACKEND = 'django_o365.backend.O365EmailBackend'Badges have been created with genbadge:
# pytest
pytest --junitxml=reports/junit/junit.xml --html=reports/junit/report.html
genbadge tests
# coverage
coverage run -m pytest tests/
coverage xml
coverage html
genbadge coverage
# flake8
flake8 django_o365/ --exit-zero --format=html --htmldir ./reports/flake8 --statistics --tee --output-file flake8stats.txt
genbadge flake8