In django-allauth==0.36.0
git clone https://github.com/pennersr/django-allauth cd django-allauth/allauth/templates/account
复制 base.html 和 login.html 到 account 目录
I tried, it works.html
# django-allauth https://django-allauth.readthedocs.io/en/latest/configuration.html # 注册必填Email ACCOUNT_EMAIL_REQUIRED = 1 # 注册无需用户名 ACCOUNT_USERNAME_REQUIRED = 0 # 登陆方式是邮件登录 ACCOUNT_AUTHENTICATION_METHOD = "email" LOGIN_REDIRECT_URL = 'profile' ACCOUNT_LOGOUT_REDIRECT_URL = 'thanks'
与自定义login模版同样,复制 signup / change password / reset password(forget) 等模版到 templates/account 目录python
自定义邮件模版
复制 django-allauth/allauth/templates/account/email 目录到 templates/account 目录
直接修改 txt 文档便可自定义注册邮箱确认,忘记密码等邮件的正文内容。git