参数 '('',)' 的 'user_reset' 反转
有关“未找到带有参数 '('',)' 的 'user_reset' 反转”解决办法
其实刚开始我也是很懵逼,按照之前的写法不应该有啥问题。错误显示:
未找到带有参数 '('',)' 的 'user_reset' 反转
{% url 'users:user_reset' code %}
路径问题,很神奇,莫名其妙的。
解决办法:
/users/user_reset/{{ code }}
这样完美解决问题,而且不会出错。
// 转载亲注明出处:https://www.cnblogs.com/Songjunxiang/p/15574574.html
欢迎提出问题,我会看见之后立刻改正。
邮箱:2247256783@qq.com
QQ(添加请注明原因):2247256783