我想在Django中更改渲染参数,但是通过调用重定向方法。
def abc(request):
theatre = Theatre.objects.all()
return render(request, 'book_tickets/post_list.html', {'theatre':theatre, 'flag': False})
我还有另一个xyz函数,我想做这样的事情:
def xyz(request):
if (something):
return redirect('post_list', 'flag':True)
答案 0 :(得分:3)
使用kwargs发送变量
disableOriginalClone()