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
6
8
url(r'^(?P<year>[0-9]{4})/(?P<month>[-\w]+)/(?P<day>[0-9]+)/(?P<slug>[-\w]+)/$',
10
11
url(r'^(?P<year>\d{4})/(?P<month>[-\w]+)/$',
12
13
name='news_archive_month'),
14
14
url(r'^(?P<year>\d{4})/$',
16
16
name='news_archive_year'),
18
17
url(r'^category/(?P<slug>[-\w]+)/',
23
21
NewsList.as_view(template_name='news/post_list.html'),