El arquitecto
El arquitecto

Reputation: 533

Ajax, Jquery Get or Post Django

Hello guys I'm working in a web app using python django as backend, and all is working fine, nowadays I have worked only with forms and sometimes with get or post option, yesterday I was trying to get info though ajax without forms, but I realized I only can use it with "get" option instead of post, Am I right?

Upvotes: 0

Views: 39

Answers (1)

arpan29
arpan29

Reputation: 179

Even without forms, you can use any of the HTTP methods like GET, POST, PUT, DELETE with Django.

To make AJAX Calls which support all the HTTP methods, you can use the Django Rest Framework package (https://github.com/encode/django-rest-framework/tree/master) with Django.

Upvotes: 1

Related Questions