Re: Django Http post and csrf error

2015-03-31 Thread Anderson Resende
In your template put in your form: {% csrf_token %} example: {% csrf_token %} -- 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+unsubscr...@

Re: Django Http post and csrf error

2015-03-30 Thread Vijay Khemlani
To prevent the CSRF validation you can use the csrf_exempt decorator https://docs.djangoproject.com/en/1.7/ref/contrib/csrf/#utilities The normal way to handle a POST request is to issue a redirect (HTTP 302) after handling the request, but if it is an automated request I guess you can return an

Django Http post and csrf error

2015-03-30 Thread Tanmay Kansara
I am trying to do the following: 1) A payment solution is supposed to send an HTTP Post to my site 2) I would like to read the contents of the request(xml) and update my records to reflect the payment I am trying this for the first time. When I create a URL path, and send a post to that addr