Wednesday, July 29, 2020

Re: Can't get rid of "CSRF verification failed. Request aborted.: when submit form with nothing selected

No. What i said the link you sent gives the validation error since fields are blank. Its not working the same way as you. Can you send the code for your html template.

On Wednesday, July 29, 2020 at 6:53:29 PM UTC-4, Christian Seberino wrote:


On Wednesday, July 29, 2020 at 5:29:53 PM UTC-5, coolguy wrote:
Tired your link for the form. If this is the form you are concerned about then the message that pops up is for validation i.e. form.is_valid().

Did you see the CSRF error I got?.  Here is a pic https://imgur.com/a/LIRBadQ

Are you saying that CSRF message is due to my view code and how I validate the form?

cs 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/69e12344-1974-4440-8cd9-a195a631eab5o%40googlegroups.com.

No comments:

Post a Comment