Vote count:
0
I followed this link and tried something similar in my django app. In my views.py i defined something like this:
def acadprogram(request):
name = Program_requirement_category.objects.get(name='AS.SCIENCE')
student_id = 2773951
values = {'student_id':student_id}
descendants = name.get_descendants(include_self=True)
return render_to_response("courses.html", {'nodes':descendants.all()}, values, context_instance = RequestContext(request))
and i tried accessing the student_id like this:
<h3><font color=#428BCA>Caleb Streeter {{student_id}}</font></h3>
But django threw me an error as follows:
render_to_string() got multiple values for keyword argument 'context_instance'
SO how do i try passing the value through render_to_response?
asked 43 secs ago
Aucun commentaire:
Enregistrer un commentaire