django views重定向到带参数的url

当一个函数进行完成后需要重定向到一个带参数的url

URL

path('peopleapply/<int:jobid>/',second_views.peopleapply,name='peopleapply'),
 
函数
def peopleapply(request,jobid):
      略
 
调用
return redirect('peopleapply',jobid = people.jbnum_id)   
 
peopleapply 为函数再url中的name
jobid 为需要的参数名称
原文地址:https://www.cnblogs.com/ddb1-1/p/12419791.html