django: taking input and showing output in the same page

后端 未结 4 1384
Happy的楠姐
Happy的楠姐 2020-12-25 08:15

I am quite new to django and struggling to do something very simple. I have a ModelForm for the following model:

class Queries(models.Model):
         


        
4条回答
  •  温柔的废话
    2020-12-25 08:46

    What you need is an asynchronous post (ajax), which is easy with jQuery, see this answer for a complete solution: How to POST a django form with AJAX & jQuery

提交回复
热议问题