1
from django.conf.urls.defaults import *
2
from widelands.news import views as news_views
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,
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'),
14
url(r'^(?P<year>\d{4})/(?P<month>\w{3})/$',
15
view=news_views.post_archive_month,
16
name='news_archive_month'),
18
url(r'^(?P<year>\d{4})/$',
19
view=news_views.post_archive_year,
20
name='news_archive_year'),
22
url(r'^categories/(?P<slug>[-\w]+)/$',
23
view=news_views.category_detail,
24
name='news_category_detail'),
26
url (r'^categories/$',
27
view=news_views.category_list,
28
name='news_category_list'),
31
view=news_views.search,
34
url(r'^page/(?P<page>\w)/$',
35
view=news_views.post_list,
36
name='news_index_paginated'),
39
view=news_views.post_list,