Django ajax no refresh:django view without redirecting or refreshing a page

后端 未结 3 492
攒了一身酷
攒了一身酷 2021-01-17 00:29

I\'d like to execute some Python code if that button is pressed on web.The thing is, I need the page not to redirect or refresh or anything.

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-17 01:17

    there's a lot of info on internet about django and ajax, just google it.

    http://www.youtube.com/watch?v=lllVAFbRGfI

    or as Mingyu said use dajax

提交回复
热议问题