Hi, Below is a function I created in my views.py file and its accompanying template file. For some reason, the second Name-Value Pair i.e. 'section':'General Info' does not render in the respective template file. Anyone know what is wrong? Thanks.
def lookup(request, first_name, last_name): user = Registrations.objects.get(last_name = last_name, first_name = first_name) vars = { 'user' : user, 'section': 'General Info' } return render_to_response('lookup.html', vars) # lookup.html template file {% extends "gen_temp.html" %} {% block title %}Lookup Search{% endblock %} {% block content %} {% if user %} <h3>{{ section }}</h3> <p>Your lookup search was for: {{ user.first_name }} {{ user.last_name }}</p> <p>{{ user.first_name }} can be reached at: {{ user.email }}</p> {% endif %} {% endblock %} -Dan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---