This is for Django 1.2 and MySQL 5.x
How does a template know a dictionary's name, if a dictionary is
supplied in render_to_response?
totals_dict['TotalActiveAccounts'] = ret_list[0]
totals_dict['TotalBillableAccounts'] = ret_list[1]
totals_dict['TotalNon-BillableAccounts'] = int(ret_list[0]) -
int(ret_list[1])
context_instance=RequestContext(request))
return render_to_response('main_page.html', totals_dict,
context_instance=RequestContext(request))
Thanks.
cmn
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.