python3.7+django2.2传参并渲染到页面

网上的答案五花八门,虽说都没有实际做用,但至少让我明白了一点,django传参的参数必须转化成字典形式,这也是网上说的最多的{‘param’:‘param’}这样的格式再输出。用代码表示就是html from django.shortcuts import render from django.http import HttpResponse def list(request,param):
相关文章
相关标签/搜索