Saturday, March 31, 2012

getting POST 500 (OK), when using $.ajax on that url

I trying to use jquery ajax to send json data to django

sorry if providing javascript code but it may help solving my problem
$("#send").click(function() {
events = $('#calendar').fullCalendar('clientEvents');
  var filter = new Array();
  filter[0] = 'start';
  filter[1] = 'end';
  filter[2] = 'title';
  events = JSON.stringify(events, filter, '\t');
  type: "POST",
  data: "events",
  url: <my_url>,

on chrome devtool every thing is ok until the last $.ajax()

it throw this error

  1. POST <my_url> 500 (OK)
    2. (anonymous function)<my_url>
    3. f.event.dispatchjquery-1.7.1.min.js:3
    4. f.event.add.h.handle.i

so why am I getting 500 error, event I tried to use csrf_exempt or disabling the csrf entirely but nothing changed

If any one can figure out what I'm doing wrong please go ahead 

thanks in advance


You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment