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)