summaryrefslogtreecommitdiff
path: root/sublab_project/news/urls.py
blob: 7f2029c0255f31e0a0fe34c5af0e0341d13ae421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from django.conf.urls.defaults import patterns, include, url
from django.views.generic import DetailView

from news.models import News
from news.feeds import NewsFeed, NewsFeedAtom
from news.views import NewsListView

urlpatterns = patterns('',
    url(r'^$', NewsListView.as_view(), name='news_list'),
    url(r'^news/(?P<slug>[-\w]+)/$', DetailView.as_view(model=News), name='news_detail'),
    url(r'^newsfeed/rss/$', NewsFeed(), name='news_feed'),
    url(r'^newsfeed/atom/$', NewsFeedAtom(), name='news_feed_atom'),
)