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