~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to news/urls.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
from django.conf.urls.defaults import *
 
2
from widelands.news import views as news_views
 
3
 
 
4
 
 
5
urlpatterns = patterns('',
 
6
    url(r'^(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\d{1,2})/(?P<slug>[-\w]+)/$',
 
7
        view=news_views.post_detail,
 
8
        name='news_detail'),
 
9
 
 
10
    url(r'^(?P<year>\d{4})/(?P<month>\w{3})/(?P<day>\d{1,2})/$',
 
11
        view=news_views.post_archive_day,
 
12
        name='news_archive_day'),
 
13
 
 
14
    url(r'^(?P<year>\d{4})/(?P<month>\w{3})/$',
 
15
        view=news_views.post_archive_month,
 
16
        name='news_archive_month'),
 
17
 
 
18
    url(r'^(?P<year>\d{4})/$',
 
19
        view=news_views.post_archive_year,
 
20
        name='news_archive_year'),
 
21
 
 
22
    url(r'^categories/(?P<slug>[-\w]+)/$',
 
23
        view=news_views.category_detail,
 
24
        name='news_category_detail'),
 
25
 
 
26
    url (r'^categories/$',
 
27
        view=news_views.category_list,
 
28
        name='news_category_list'),
 
29
 
 
30
    url (r'^search/$',
 
31
        view=news_views.search,
 
32
        name='news_search'),
 
33
 
 
34
    url(r'^page/(?P<page>\w)/$',
 
35
        view=news_views.post_list,
 
36
        name='news_index_paginated'),
 
37
 
 
38
    url(r'^$',
 
39
        view=news_views.post_list,
 
40
        name='news_index'),
 
41
)