0
HTMLhistorybp()得到了一个意想不到的关键字参数 '名'
"<td><h4><a href="/cyphys/{{user_name}}/historybp/{{current_patient_obj.patientID}}/">BP</a></h4></td>"
这里是views.py
@login_required
def historybp(request, patientID):
context = { 'pid':patientID}
return HttpResponse("request for bp history received")
,这里是urls.py
url(r'^(?P<name>\w+)/historybp/(?P<patientID>\d+)/$', historybp),