dcramer / django-ratings

Pluggable rating fields in Django.
BSD 2-Clause "Simplified" License
407 stars 167 forks source link

rating with ajax, in django1.4 #39

Closed DeronW closed 9 years ago

DeronW commented 12 years ago

how can I use rating with ajax, in django1.4 I want POST a request by ajax, but django report 403 status code, I need request with csrf_token code, how can I disable this in django-rating

cristiangrojas commented 12 years ago

Django has a decorator called csrf_exempt, you can import and use it in the view where you dont want to use csrf_token

DeronW commented 9 years ago

thanks