accounts/login/?next=/account/password-change/ 妖狐艹你老母 2023-06-26 12:08 6阅读 0赞 今天在学习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)
还没有评论,来说两句吧...