Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4546b7e9d5
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (12 sloc) 0.831 kb
from django.conf.urls.defaults import *
from announcements.views import detail, dismiss
from announcements.views import CreateAnnouncementView, UpdateAnnouncementView
from announcements.views import DeleteAnnouncementView, AnnouncementListView
urlpatterns = patterns("",
url(r"announcement/(?P<pk>\d+)/$", detail, name="announcements_detail"),
url(r"announcement/(?P<pk>\d+)/hide/$", dismiss, name="announcement_dismiss"),
url(r"announcement/create/$", CreateAnnouncementView.as_view(), name="announcements_create"),
url(r"announcement/(?P<pk>\d+)/update/$", UpdateAnnouncementView.as_view(), name="announcements_update"),
url(r"announcement/(?P<pk>\d+)/delete/$", DeleteAnnouncementView.as_view(), name="announcements_delete"),
url(r"", AnnouncementListView.as_view(), name="announcements_list"),
)
Jump to Line
Something went wrong with that request. Please try again.