Wow, thank you so much! The --debug option is really helpful. Best, Ankush
On Monday, June 20, 2016 at 2:15:24 PM UTC+5:30, Tom Christie wrote: > > The responses should be the same - it's the outgoing requests that are > different. > If you use `--debug` you ought to be able to inspect the outgoing requests. > > On Friday, 17 June 2016 19:49:28 UTC+1, Ankush Thakur wrote: >> >> Hi, when following the official tutorial, I came across the section on >> http://www.django-rest-framework.org/tutorial/2-requests-and-responses/ >> that says "Similarly, we can control the format of the request that we >> send, using the Content-Type header." We then have two examples that are >> exactly alike except for `--form` and `--json`. >> >> When I ran them on my setup, I got exactly identical response from the >> server. I'm not sure how these two requests are different, and whether the >> output was supposed to be different but was perhaps not captured in the >> docs. >> >> Some help? >> >> Regards, >> Ankush Thakur >> > -- You received this message because you are subscribed to the Google Groups "Django REST framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
