是的,正确的写法为
Like
Motaz Hejaze 于2020年5月20日周三 下午2:06写道:
> Change your ajax method from "post" to "get" , you are not submitting any
> data to use post .
>
> Also change the method in your form too , and share the error message
> please.
>
> On Wed, 20 May 2020, 6:18 am Ahmed Khairy,
> wrote:
>
Change your ajax method from "post" to "get" , you are not submitting any
data to use post .
Also change the method in your form too , and share the error message
please.
On Wed, 20 May 2020, 6:18 am Ahmed Khairy,
wrote:
> Do you mean that this line should be changed?
>
>
Do you mean that this line should be changed?
No ! Don't Print it
On Tuesday, May 19, 2020 at 11:11:12 PM UTC-4, Hella Nick wrote:
>
> button标签中的type属性设置为button,
>
> Ahmed Khairy > 于2020年5月20日周三 上午1:54写道:
>
>> I am trying to use Ajax
Django中的表单提交按钮不要使用submit属性,否则会触发get请求,或者发生错误。
Hella Nick 于2020年5月20日周三 上午11:09写道:
> button标签中的type属性设置为button,
>
> Ahmed Khairy 于2020年5月20日周三 上午1:54写道:
>
>> I am trying to use Ajax to submit a like button, I believe everything is
>> in order but I keep getting
button标签中的type属性设置为button,
Ahmed Khairy 于2020年5月20日周三 上午1:54写道:
> I am trying to use Ajax to submit a like button, I believe everything is
> in order but I keep getting django.urls.exceptions.NoReverseMatch: Reverse
> for 'like_post' with arguments '('',)' not found. 1 pattern(s) tried:
>
I am trying to use Ajax to submit a like button, I believe everything is in
order but I keep getting django.urls.exceptions.NoReverseMatch: Reverse for
'like_post' with arguments '('',)' not found. 1 pattern(s) tried:
['score/like/(?P[0-9]+)$']
I am not sure what is the reason. Need help to
6 matches
Mail list logo