Django reset_password_confirm TemplateSyntaxError problem

后端 未结 8 1370
夕颜
夕颜 2020-12-13 20:39

when I use django.contrib.auth.views.password_reset_confirm without arguments at all it works and I can render the template without any problem, when adding

8条回答
  •  独厮守ぢ
    2020-12-13 21:17

    Just add this line to your urls.py:

    url('^', include('django.contrib.auth.urls')),
    

    This enables the django reset_password workflow.

    Then override your login.html to include the line:

    Now you should be able to use the builtin Django PasswordResetView included with Django as long as your email settings are set up.

提交回复
热议问题