On Tue, Jul 2, 2013 at 5:24 PM, Sanjay Bhangar <[email protected]> wrote:
> On Tue, Jul 2, 2013 at 4:20 PM, Larry Martell <[email protected]>
> wrote:
>>
>> On Tue, Jul 2, 2013 at 5:14 PM, Sanjay Bhangar <[email protected]>
>> wrote:
>> > On Tue, Jul 2, 2013 at 4:01 PM, Larry Martell <[email protected]>
>> > wrote:
>> >>
>> >> <snip />
>> >>
>> >> In the browser the response has this:
>> >>
>> >> HTTP/1.0 200 OK
>> >> Date: Tue, 02 Jul 2013 22:53:47 GMT
>> >> Server: WSGIServer/0.1 Python/2.7.2
>> >> Vary: Cookie
>> >> Content-Type: text/plain
>> >>
>> >> No content. But I verified from pdb that the python code is sending
>> >> something in the content when it does this:
>> >>
>> >> return HttpResponse(content=data, content_type="text/plain",
>> >> status=200)
>> >>
>> > try:
>> >   return HttpResponse(data, content_type="text/plain", status=200)
>> >
>> > (no content= ... )
>>
>> No difference - still no content.
>>
> Can you navigate to the page just in the browser (not making an AJAX
> request) ? Do you get a response then? What if you substitute data with
> "some random string" ?

Yes, I get back the data I expect.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to