1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# Create your views here. from models import Category, Screenshot from django.shortcuts import render_to_response from django.template import RequestContext from django.http import Http404 def index( request ): c = Category.objects.order_by("-name") return render_to_response( "wlscreens/index.html", { "categories": c, }, RequestContext(request) ) def category(request, category_slug): "Not implemented at the moment" raise Http404 |