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),