You can easily look at the request/response by using firebug. TIP: Notice if there is a redirect. Sometimes depending on the config, for example, if django is set to append a / at the end, meaning it will do a redirect, then your request or response might be getting lost in the redirect (an HTTP 302) http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
When you have django running with apache config might be different. So first step is look in firebug what requests are being made. On Nov 2, 3:13 pm, Reinout van Rees <rein...@vanrees.org> wrote: > 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.