accounts/login/?next=/account/password-change/

 

今天在学习Django的时候一直出现http://127.0.0.1:8000/accounts/login/?next=/account/password-change/

Page not found (404)
    Request Method:    GET
    Request URL:    http://127.0.0.1:8000/accounts/login/?next=/account/password-change/

进入源码看到以下内容,原因是需要先进行登录才能进行密码修改

@method_decorator(sensitive_post_parameters())
@method_decorator(csrf_protect)
@method_decorator(login_required)
posted @ 2020-01-18 09:03  那人_那事  阅读(853)  评论(0编辑  收藏  举报