Django post without form. If you need to access raw or non-form data posted in the request, access this through the HttpRequest. I just wanna know if it's possible to handle a POST request without a form or a model. Django’s login form is returned using the POST method, in which the browser bundles up the form data, encodes it for transmission, sends it to the server, and then receives back its response. It’s possible that a request can come in via POST with an empty POST dictionary – if, say, a form is requested via the POST HTTP method but does not include form data. . body attribute instead. GET, by contrast, bundles the submitted data into a string, and uses this to compose a URL. POST operand, and if it is False, it will take the right operand (so None). Feb 16, 2021 · Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. Mar 16, 2023 · And that’s it! With these steps, we’ve set up an AJAX-based POST request in Django that allows us to submit data to the server without refreshing the page. This means that even if it is a POST request, it will take None, and thus as result the form is not bounded. I don't know if I can explain this better in english, so forgive me if I explained it bad. However, the server does not respond to a browser (such as using JS frameworks or a form) but instead a REST api sent by an Anroid/iOS application. The or operator evaluates the truthiness of the request. wsyv jbhrcwk vhtb kwp ucdv ketlzx yoie nsuaec xhcxu dgj