In urls.py
urlpatterns = patterns(’mysite.bizcard.views’,
(r’^about$’, views.simple, {‘template_name’:'about.html’}),
(r’^help/$’, views.simple, {‘template_name’:'help.html’}),
)
In views.py
def simple(request, template_name):
return render_to_response(template_name, {‘book_list’:Book.objects.all()})
——–
Note here that single view function can render multiple template files.
