在Django的意见:- t = get_template('bar-templates.html')
html = t.render(Context在上下文中,edit和user被传递给bar-templates.html,但是在foo-templates.html中也使用这个变量。在django中,我们使用{{ edit }}来捕获变量。因为这个变量出现在bar-tem
我是Ajax和Django的新手。每次点击都会填写表单的一部分。我要为每个对象填写一次表格。所以总共是两次。当为第一个主题填写完表单后,我希望通过Ajax将表单发送到服务器,而不刷新页面,并允许为第二个对象重新填充表单。但是,由于某些原因,我无法通过ajax发送表单。:from django.shortcuts im