参考:

http://www.honkerzhou.com/post/3/

https://www.jianshu.com/p/41335d861a8d

https://django-allauth.readthedocs.io/en/latest/configuration.html