It's your responsibility to provide the login form in a template called registration/login.html by default.
Password Reset Optional arguments:
template_name: The full name of a template to use for displaying the password reset form. This will default to registration/password_reset_form.html if not supplied.
可以在django.contrib.admin.templates.registration使用身份验证模板:
这些将有Django管理员的外观和感觉,所以我建议定制它。
不,它会在模板文件夹中的“注册”目录中查找这些模板。
从文档中:
文件:login,password_reset
虽然Django documentation显式声明“Django没有为身份验证视图提供默认模板”,但我发现使用管理模板很简单。只需启用管理应用程序,然后将其添加到url.py:
所有的认证url现在都可以工作了,尽管有Django管理员的外观。
相关问题 更多 >
编程相关推荐