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