Django框架学习笔记(19.自定义分页)

在讲自定义分页之前,先讲一个简单的。 在模板语言中还有一些特殊的存在,比如这个: def tpl4(request): name = "asdf123456" return render(request, 'tpl4.html', {'name': name}) tpl4.html: <body> {{ name }} {{ name|upper }} </body> 运行后: 这
相关文章
相关标签/搜索