How to receive json data using HTTP POST request in Django 1.6?

67 views
Skip to first unread message

Alok Singh Mahor

unread,
Jun 9, 2014, 6:20:05 AM6/9/14
to django...@googlegroups.com
Hi all,

I am trying to receive JSON data using HTTP POST in django 1.6.
I tried using request.POST['data'], request.raw_post_data, request.body but none is working for me.
I have posted question and code at http://stackoverflow.com/questions/24068576/how-to-receive-json-data-using-http-post-request-in-django-1-6

please tell me how to achieve this in django 1.6

Malcolm Box

unread,
Jun 10, 2014, 7:17:37 AM6/10/14
to django...@googlegroups.com
Simplest answer is to use Django Rest Framework, which makes this extremely easy.

Malcolm

Alok Singh Mahor

unread,
Jun 10, 2014, 7:53:02 AM6/10/14
to django...@googlegroups.com
thank you Malcolm, I will try that too


--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/78563526-cf0a-4cfc-b8f4-e1551eb4fa51%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages