参数 '('',)' 的 'user_reset' 反转

有关“未找到带有参数 '('',)' 的 'user_reset' 反转”解决办法

其实刚开始我也是很懵逼,按照之前的写法不应该有啥问题。错误显示:

未找到带有参数 '('',)' 的 'user_reset' 反转
{% url 'users:user_reset' code %}

路径问题,很神奇,莫名其妙的。

解决办法:

/users/user_reset/{{ code }}

这样完美解决问题,而且不会出错。

// 转载亲注明出处:https://www.cnblogs.com/Songjunxiang/p/15574574.html

posted @ 2021-11-18 21:31  Wait_Future  阅读(92)  评论(0编辑  收藏  举报