Skip to content

Blueshoe/django-o365

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tests Status Coverage Status Flake8 Status

django-o365

Simple EmailBackend for Django to work with Microsoft Exchange Online, via o365 package.

Supported authentication

Currently only OAuth2.0 authentication with credentials workflow is supported.

Configuration

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

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

About

EmailBackend for Django to work with Microsoft Exchange Online, via o365 package

Resources

License

Stars

Watchers

Forks

Packages

No packages published