python3.7+django2.2傳參並渲染到頁面

網上的答案五花八門,雖說都沒有實際做用,但至少讓我明白了一點,django傳參的參數必須轉化成字典形式,這也是網上說的最多的{‘param’:‘param’}這樣的格式再輸出。用代碼表示就是html from django.shortcuts import render from django.http import HttpResponse def list(request,param):
相關文章
相關標籤/搜索