On 11/02/2010 09:29 PM, Eric wrote:
I am returning a json structure in one of my views after the user
performs a search when I only run Django's built in server. Following
the asynchronous GET I get a response with the expected json
structure which I can then use to populate the page.
However, when I have Apache in front, the response is empty. And this
appears to be only when I make an AJAX request since all of the other
requests and responses produce the expected results.
I don't know how to go about troubleshooting this.
Does anybody know what is going on here? Or, how to troubleshoot this?
Some random tips:
Take a hard look at what's actually being returned. Empty response,
apparently. But what about the http status code? 200 OK or 500
AARGH_ERROR? Or something that's just not parsed as valid json? Or
perhaps an invalid mimetype?
Useful tools: firebug (lets you inspect the headers). Or just "wget" in
a pretty verbose mode.
Reinout
--
Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org
Collega's gezocht!
Django/python vacature in Utrecht: http://tinyurl.com/35v34f9
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.