~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wlscreens/urls.py

  • Committer: Holger Rapp
  • Date: 2010-09-26 13:30:30 UTC
  • Revision ID: sirver@gmx.de-20100926133030-ceirjf83vde91tyt
Added a simple events model to display dates on the homepage

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python -tt
2
2
# encoding: utf-8
3
 
from django.conf.urls import *
 
3
from django.conf.urls.defaults import *
4
4
from models import Category, Screenshot
5
5
from views import *
6
6
 
7
 
urlpatterns = [
8
 
    url(r'^$', index, name='wlscreens_index'),
9
 
    url(r'^(?P<category_slug>[-\w]+)/$', category, name='wlscreens_category'),
10
 
]
 
7
urlpatterns = patterns('',
 
8
    url(r'^$', index, name="wlscreens_index" ),
 
9
    url(r'^(?P<category_slug>[-\w]+)/$', category, name = "wlscreens_category" ),
 
10
)
 
11