~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlscreens/views.py

  • Committer: Holger Rapp
  • Date: 2009-04-11 15:21:15 UTC
  • Revision ID: rapp@mrt.uka.de-20090411152115-qpbnxxze99td19bz
Added a first version of a screenshot application

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_to_response
 
5
from django.template import RequestContext
 
6
 
 
7
def index( request ):
 
8
    c = Category.objects.all()
 
9
    
 
10
    return render_to_response( "wlscreens/index.html", 
 
11
                { "categories": c, },
 
12
                RequestContext(request) )
 
13
 
 
14
def category(request, category_slug):
 
15
    pass