我是django的初学者,我在这里遇到了一个问题。我的模型 from django.db import models
class course_name(models.Model): return render(request,'home/lectures.html',context) 我想在我的模板中<
我有一个控件/视图,它使用以下命令将HTML模板呈现到视图中:这很好用,但我也想做一个合并,我的意思是:例如,Model.TemplateContent包含一个模型项,如:
Model.TemplateContent = "<p>The Name of the Customer is @Model.CustomerName</p>&quo