Greetings,
-- How can I access and display JSON data in a template html file? I am getting the JSON data back in the javascript console as follows :
I tried {{ jason_data }} but no luck.
Thank you!
Here is how I am returning the json data in views.py:
return HttpResponse(json_obj, content_type='application/json')
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5742de2f-67d8-4553-bb78-25b6a9dbf9a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment