url帶參數重定向

2019獨角獸企業重金招聘Python工程師標準>>> python django重定向的方式有不少種,能夠自行百度。這裏我推薦是redirect和reverse的方式。很簡潔,也能夠解決傳參數的問題django 示例以下:函數 #投票結果查看 def results(request,question_id=1): return HttpResponse(r"you're looking
相關文章
相關標籤/搜索