Sunday, September 23, 2012

Re: Can I simply disable the CSRF? crazy

Hi 

I was trying to disable csrf . I am calling post using ajax.

I have used the csrf token placed it below the form.  

In my views file i m using the csrf exempt.

I am still getting the network forbidden error. :(

If you require more information i will share it :) 

On Thursday, 19 August 2010 06:49:02 UTC+5:30, chenge wrote:


On 8月18日, 上午4时29分, Rolando Espinoza La Fuente <dark...@gmail.com>
wrote:
> On Tue, Aug 17, 2010 at 8:01 AM, chenge <cheng...@gmail.com> wrote:
> > I'm new to django. CSRF let me crazy!
>
> Can't use {% csrf_token %} tag inside your <form>'s?
>
> See csrf_exempt decorator:http://docs.djangoproject.com/en/dev/ref/contrib/csrf/#exceptions
>
> Regards,
>
> Rolando Espinoza La fuentewww.insophia.com

Thanks, I decide try flask first, that seems simple. Maybe I'll try
the exempt.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/BQ5RpafQK3EJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate