~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlscreens/views.py

  • Committer: Holger Rapp
  • Date: 2009-02-21 18:24:02 UTC
  • Revision ID: sirver@kallisto.local-20090221182402-k3tuf5c4gjwslbjf
Main Page contains now the same informations as before

Show diffs side-by-side

added added

removed removed

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