1
1
from django.conf.urls import *
2
2
from django.views.generic import ListView
3
3
from news.views import NewsList, YearNews, MonthNews, NewsDetail, CategoryView
8
6
url(r'^(?P<year>[0-9]{4})/(?P<month>[-\w]+)/(?P<day>[0-9]+)/(?P<slug>[-\w]+)/$',
11
10
url(r'^(?P<year>\d{4})/(?P<month>[-\w]+)/$',
13
12
name='news_archive_month'),
14
14
url(r'^(?P<year>\d{4})/$',
16
16
name='news_archive_year'),
17
18
url(r'^category/(?P<slug>[-\w]+)/',
21
23
NewsList.as_view(template_name='news/post_list.html'),