405 Error
maxjang opened this issue · 3 comments
maxjang commented
Getting 405 Error when clicking on like buttons. Scanned through codes, not sure what I did wrong (if any).
jeffbowen commented
paltman commented
It's CSRF token protection. You are missing a js shim to take care of passing the token on ajax requests.
jeffbowen commented
Thanks for the response, @paltman! Turns out that wasn't my issue. I figured it out just now. I placed url(r'^likes/', include('phileo.urls')),
in my URL patterns after a URL pattern with the regex r'^'
which was catching the requests so the POST
was never even making it to Phileo. Rookie mistake. Excited to start playing with Phileo now that I've got it working. Thanks for your work on it and sorry to bug you!