summaryrefslogtreecommitdiff
path: root/sublab_project/projects/urls.py
blob: dfeb4d2beead8d95d8605464bdd53a02d28c09ef (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, ListView

from projects.models import Project
from projects.feeds import ProjectNewsFeed, ProjectNewsFeedAtom

urlpatterns = patterns('',
    url('^$', ListView.as_view(model=Project), name='projects_list'),
    url('^(?P<slug>[-\w]+)/$', DetailView.as_view(model=Project),
            name='projects_detail'),
    url('^(?P<slug>[-\w]+)/rss/$', ProjectNewsFeed()),
    url('^(?P<slug>[-\w]+)/atom/$', ProjectNewsFeedAtom()),
)