X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/23f0993732ac597e0a4ab1330b62b970c09d476c..357027375ff8867f42ca34bcbfb5a78b5b185fc3:/apps/libraries/views.py?ds=sidebyside diff --git a/apps/libraries/views.py b/apps/libraries/views.py deleted file mode 100644 index 88f993d68..000000000 --- a/apps/libraries/views.py +++ /dev/null @@ -1,15 +0,0 @@ -from django.shortcuts import render_to_response, get_object_or_404 -from django.template import RequestContext, Template, TemplateSyntaxError - -from libraries.models import Catalog - - -def main_view(request): - context = RequestContext(request) - context['catalogs'] = Catalog.objects.all() - return render_to_response('libraries/main_view.html', context_instance = context) - -def catalog_view(request, slug): - context = RequestContext(request) - context['catalog'] = get_object_or_404(Catalog.objects.filter(slug = slug).select_related()) - return render_to_response('libraries/catalog_view.html', context_instance = context) \ No newline at end of file