[Answer]-How to get information via POST request without reloading entire webpage. (Python/Django)

1👍

Since you don’t want to refresh the page when you are posting a request, you would want to make a Asynchronous Request to the Server. JQuery, Javascript library has some neat functions which would help you make an asynchronous request. After the server receives the request, it can perform computation can send an HttpResponse with HTML, XML or JSON data as mentioned by Brandon

This is a wiki page for the Tutorial on Ajax with Django

https://code.djangoproject.com/wiki/AJAX

0👍

You need to return an HttpResponse. It’s up to you whether or not to return XML, JSON, HTML, etc. Your request has to be made via Ajax.

https://docs.djangoproject.com/en/1.4/ref/request-response/#django.http.HttpResponse

Leave a comment