Re: request.read() is empty in POST

2017-01-04 Thread Michal Petrucha
On Fri, Dec 30, 2016 at 01:50:51PM -0800, Flávio Cardoso wrote: > Hello! I'm getting crazy, PLEASE someone, give me some light!!! > > I'm using Django 1.10.4, Python 3.5 on Windows using Visual Studio > Community 2015. > > I have some class-based views to response some json. > > from django.vie

RE: request.read() is empty in POST

2017-01-04 Thread Matthew Pava
Sent: Wednesday, January 4, 2017 2:06 PM To: Django users Subject: Re: request.read() is empty in POST Childish? Ok, so I'm stuck, my project is stopped, nobody, no one, even YOU, can give me a hand. I spent days researching and debugging trying to solve the problem. I've been waitin

Re: request.read() is empty in POST

2017-01-04 Thread Avraham Serour
aand you are angry. So we can start yet another flame war, if that's the case I'll reply to each of your points. If you still want help you may reply to the first reply of this thread, which was trying to help but was ignored. I'm also willing to call you and help for at least 20min, just send me

Re: request.read() is empty in POST

2017-01-04 Thread ludovic coues
Have you tried reading request.body ? You can use `print(repr(request.body))` to check the value of request.body. It should give you more information. I hope that help you 2017-01-04 21:06 GMT+01:00 Flávio Cardoso : > Childish? Ok, so I'm stuck, my project is stopped, nobody, no one, even YOU, > c

Re: request.read() is empty in POST

2017-01-04 Thread Flávio Cardoso
Childish? Ok, so I'm stuck, my project is stopped, nobody, no one, even YOU, can give me a hand. I spent days researching and debugging trying to solve the problem. I've been waiting for days for anything and nothing, nobody, including YOU told nothing to help me. If the platform - AND THE COM

Re: request.read() is empty in POST

2017-01-04 Thread Avraham Serour
That's an incredibly childish response and I hope future people trying to learn python or django don't give up upon a roadblock, any future people reading this don't ever feel that you are helpless, the community has many resources to help including this mailing list. Sometimes it is difficult to

Re: request.read() is empty in POST

2017-01-04 Thread Flávio Cardoso
I work with ASP.Net since version 1.1. I've never been with a stuck project. I'm trying to directly read the request because it is application/json, so Django doesn't delivery the data via request.GET nor .POST. And I got an exception on request.body: raise RawPostDataException("You cannot acc

Re: request.read() is empty in POST

2017-01-03 Thread Vijay Khemlani
Yeah, because hitting a roadblock only happens in Django Why are you trying to read the request directly? django parses it in request.body, request.GET, request.POST, request.FILES, etc https://docs.djangoproject.com/en/1.10/ref/request-response/ On 1/4/17, Flávio Cardoso wrote: > Wow, that's s

Re: request.read() is empty in POST

2017-01-03 Thread Flávio Cardoso
Wow, that's sad :( I'll port it to C# Em sexta-feira, 30 de dezembro de 2016 19:52:49 UTC-2, Flávio Cardoso escreveu: > Hello! I'm getting crazy, PLEASE someone, give me some light!!! > > I'm using Django 1.10.4, Python 3.5 on Windows using Visual Studio > Community 2015. > > I have some