1 from django.shortcuts import render_to_response, get_object_or_404
\r
2 from django.template import RequestContext, Template, TemplateSyntaxError
\r
4 from libraries.models import Library
\r
7 def main_view(request):
\r
8 context = RequestContext(request)
9 context['libraries'] = Library.objects.all()
\r
11 return render_to_response('libraries/main_view.html', context_instance = context)