<form action="" method="post" novalidate>
与
<form action="." method="post" novalidate>
<form action=".">
目前不清楚是什么作用
<form action="">
向本页面发送请求
今天在做重置密码功能的时候使用django内置模块PasswordResetConfirmView
url.py 配置的路径为动态生成的。(account为app的名称)
path('reset/<uidb64>/<token>', PasswordResetConfirmView.as_view(
success_url = reverse_lazy('account:password_reset_complete'),
), name='password_reset_confirm'),
如果使用<form action=".">
则会一直报404找不到url。
使用<form action="">
就可以找到url。
网友评论