Re: ModelMultipleChoiceField - different number of values in request _body and _post

2022-01-16 Thread Patrice Chaula
Information for your post request is missing. Paste all the data that is sent when making a post request. That way everyone gets the idea of what you are trying to achieve. On Sun, Jan 16, 2022, 10:22 PM Campbell McKilligan wrote: > Hi, > I have an ajax request which submits multiple values to

What is the necessity of success_url_allowed_hosts on a LogoutView?

2021-07-26 Thread Patrice Chaula
success_url_allowed_hosts: A set of hosts, in addition to request.get_host() , that are safe for redirecting after logout. Defaults to an empty

Re: In django you can either obtain a `csrftoken` from a cookie or the form can generate a nonce `csrftoken`. How does django validate both?

2021-07-01 Thread Patrice Chaula
e-site.com using the user's credentials without the > user knowing.) > > Antonis Christofides > +30-6979924665 (mobile) > > > > On 01/07/2021 01.48, Patrice Chaula wrote: > > What if I can copy that cookie (samesite) in developer tools from > legitimate-site.com and

Re: In django you can either obtain a `csrftoken` from a cookie or the form can generate a nonce `csrftoken`. How does django validate both?

2021-06-30 Thread Patrice Chaula
> csrftoken received the previous time the user visited legitimate-site.com. > It will not be the same as the csrftoken sent as a hidden field, because > malicious-site.com can't read cookies of another site, so it can't > possibly read that cookie and set the hidden field to its value. >

In django you can either obtain a `csrftoken` from a cookie or the form can generate a nonce `csrftoken`. How does django validate both?

2021-06-30 Thread Patrice Chaula
In django you can either obtain a `csrftoken` from a cookie. Or the form can generate a nonce `csrftoken`. How does django validate both and where are they stored on the server. Are they stored as part of the session? -- You received this message because you are subscribed to the Google Groups

Re: I am on a e-commerce website on a video from youtube and I am having problems with stripe

2019-04-01 Thread Patrice Chaula
rever. > <https://www.avast.com/en-in/recommend?utm_medium=email_source=link_campaign=sig-email_content=webmail_term=default3=7ce9710f-d0c2-48a2-a0ba-76107578348e> > > <#CAMKMUjteR+e92Dx13aighSDA8=pbA3udHctncxFcixhpfCB1+g@mail.gmail.com_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> &

My page is not loading css correctly

2019-04-01 Thread Patrice Chaula
I am learning django framework for building websites. I am trying to style my page with css. I have gone through the tutorial for managing static files in django. I have done every step mentioned. I am trying to display a jumbtron with a purple background and white text. The code is below. Only

I am on a e-commerce website on a video from youtube and I am having problems with stripe

2019-03-29 Thread Patrice Chaula
I am using Stripe to process payments from my website. Yesterday it was working ok. That was before I changed code my code so It can process payments using a customer_id. I am using test keys My code below. Help I'm still a beginner in django. I'm sorry my English is bad. from