On Thu, Mar 1, 2012 at 8:29 AM, Shawn Milochik <sh...@milochik.com> wrote: > On 03/01/2012 07:48 AM, Stanwin Siow wrote: >> >> Hello, >> >> I want to view the actual json data from django view, is there anyway i >> can do that before i parse it into jQuery? >> > > > Assuming that you have a dictionary named "return_data," this will do it: > > return HttpResponse(simplejson.dumps(return_data), mimetype = > "application/json") >
Or, if you want to see it coming from the django site, use curl (always there on linux, available if not there on OS/x, there are versions for Windows, I'm sure but there is also cygwin. Or you can use urllib2 to fetch it from a python prompt. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-users@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. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@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.