~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlscreens/views.py

  • Committer: franku
  • Date: 2016-12-13 18:28:51 UTC
  • mto: This revision was merged to the branch mainline in revision 443.
  • Revision ID: somal@arcor.de-20161213182851-bo5ebf8pdvw5beua
run the script

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
from django.template import RequestContext
6
6
from django.http import Http404
7
7
 
8
 
def index( request ):
9
 
    c = Category.objects.order_by("-name")
10
 
 
11
 
    return render_to_response( "wlscreens/index.html",
12
 
                { "categories": c, },
13
 
                RequestContext(request) )
 
8
 
 
9
def index(request):
 
10
    c = Category.objects.order_by('-name')
 
11
 
 
12
    return render_to_response('wlscreens/index.html',
 
13
                              {'categories': c, },
 
14
                              RequestContext(request))
 
15
 
14
16
 
15
17
def category(request, category_slug):
16
 
    "Not implemented at the moment"
 
18
    """Not implemented at the moment."""
17
19
 
18
20
    raise Http404