Django: How can I call a view function from template?

后端 未结 6 1943
难免孤独
难免孤独 2020-11-27 12:27

I have a question on how to call a view function from a template HTML button? Like an onclick function? Here is the template:



        
6条回答
  •  遥遥无期
    2020-11-27 13:01

    you can put the input inside a form like this:-

    
    
    
    Send Data

提交回复
热议问题