简体   繁体   中英

Ajax, Jquery Get or Post Django

大家好,我正在使用python django作为后端的Web应用程序中工作,并且一切正常,如今我只使用表单,有时使用get或post选项,昨天我试图通过不带表单的ajax获取信息,但是我意识到我只能将其与“ get”选项一起使用,而不是发布,对吗?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM