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

妖狐艹你老母 2023-06-26 12:08 93阅读 0赞

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

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

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

  1. @method_decorator(sensitive_post_parameters())
  2. @method_decorator(csrf_protect)
  3. @method_decorator(login_required)

发表评论

表情:
评论列表 (有 0 条评论,93人围观)

还没有评论,来说两句吧...

相关阅读