Ejemplo n.º 1
0
from django.conf.urls import url
from notices.views import (
    NoticeList, CreateNotice,
    NoticeUpdateView, NoticeDeleteView, BookmarkCreateView,
    BookmarkDeleteView, BookmarkListView, PinCreateView,
    ReleventNoticeListView, SearchNotices, MyUploadedNotices,
)

urlpatterns = [
    url(r'(?P<pk>[0-9]+)/bookmark/$', BookmarkCreateView.as_view(), name='bookmark-add'),
    url(r'(?P<pk>[0-9]+)/bookmark/delete/$', BookmarkDeleteView.as_view(), name='bookmark-delete'),
    url(r'(?P<pk>[0-9]+)/edit/$', NoticeUpdateView.as_view(), name='notice-update'),
    url(r'(?P<pk>[0-9]+)/delete/$', NoticeDeleteView.as_view(), name='notice-delete'),
    url(r'(?P<pk>[0-9]+)/pinned/$', PinCreateView.as_view(), name='pin-add'),
    url(r'^bookmark/$', BookmarkListView.as_view(), name='bookmark-list'),
    url(r'^relevant/$', ReleventNoticeListView.as_view(), name="relevent-notice-list"),
    url(r'^search/$', SearchNotices.as_view(), name="notice-search"),
    url(r'^add/$', CreateNotice.as_view(), name='notice-add'),
    url(r'^$', NoticeList.as_view(), name="notice-list"),
    url(r'^uploaded/$', MyUploadedNotices.as_view(), name="my-uploaded-notices"),
]
Ejemplo n.º 2
0
)

urlpatterns = [
    url(r'(?P<pk>[0-9]+)/share/notice/$',
        ShareNoticeView.as_view(),
        name='share-notice'),
    url(r'(?P<pk>[0-9]+)/bookmark/$',
        BookmarkCreateView.as_view(),
        name='bookmark-add'),
    url(r'(?P<pk>[0-9]+)/bookmark/delete/$',
        BookmarkDeleteView.as_view(),
        name='bookmark-delete'),
    url(r'(?P<pk>[0-9]+)/edit/$',
        NoticeUpdateView.as_view(),
        name='notice-update'),
    url(r'(?P<pk>[0-9]+)/delete/$',
        NoticeDeleteView.as_view(),
        name='notice-delete'),
    url(r'(?P<pk>[0-9]+)/pinned/$', PinCreateView.as_view(), name='pin-add'),
    url(r'^bookmark/$', BookmarkListView.as_view(), name='bookmark-list'),
    url(r'^relevant/$',
        ReleventNoticeListView.as_view(),
        name="relevent-notice-list"),
    url(r'^search/$', SearchNotices.as_view(), name="notice-search"),
    url(r'^add/$', CreateNotice.as_view(), name='notice-add'),
    url(r'^$', NoticeList.as_view(), name="notice-list"),
    url(r'^uploaded/$',
        MyUploadedNotices.as_view(),
        name="my-uploaded-notices"),
]
Ejemplo n.º 3
0
from django.conf.urls import url
from notices.views import NoticeList, NoticeShow, NoticeCreateView, NoticeUpdateView, NoticeDeleteView, BookmarkCreateView,  BookmarkDeleteView, BookmarkListView, PinCreateView

urlpatterns = [
    url(r'(?P<pk>[0-9]+)/bookmark/$', BookmarkCreateView.as_view(), name='bookmark-add'),
    url(r'(?P<pk>[0-9]+)/bookmark/delete/$', BookmarkDeleteView.as_view(), name='bookmark-delete'),
    url(r'(?P<pk>[0-9]+)/edit/$', NoticeUpdateView.as_view(), name='notice_update'),
    url(r'(?P<pk>[0-9]+)/delete/$', NoticeDeleteView.as_view(), name='notice_delete'),
    url(r'(?P<pk>[0-9]+)/pinned/$', PinCreateView.as_view(), name='pin-add'),
    url(r'(?P<pk>[0-9]+)/', NoticeShow.as_view(), name="notice_show"),
    url(r'^bookmark/$', BookmarkListView.as_view(), name='bookmark-list'),
    url(r'add/$', NoticeCreateView.as_view(), name='notice_add'),
    url(r'', NoticeList.as_view(), name="notice_list"),
]
Ejemplo n.º 4
0
from django.conf.urls import url
from notices.views import (NoticeList, NoticeShow, CreateNotice, NoticeUpdateView, NoticeDeleteView,
                           BookmarkCreateView,  BookmarkDeleteView, BookmarkListView, PinCreateView, ReleventNoticeListView, SearchNotices)

urlpatterns = [
    url(r'(?P<pk>[0-9]+)/bookmark/$', BookmarkCreateView.as_view(), name='bookmark-add'),
    url(r'(?P<pk>[0-9]+)/bookmark/delete/$', BookmarkDeleteView.as_view(), name='bookmark-delete'),
    url(r'(?P<pk>[0-9]+)/edit/$', NoticeUpdateView.as_view(), name='notice_update'),
    url(r'(?P<pk>[0-9]+)/delete/$', NoticeDeleteView.as_view(), name='notice_delete'),
    url(r'(?P<pk>[0-9]+)/pinned/$', PinCreateView.as_view(), name='pin-add'),
    url(r'(?P<pk>[0-9]+)/', NoticeShow.as_view(), name="notice_show"),
    url(r'^bookmark/$', BookmarkListView.as_view(), name='bookmark-list'),
    url(r'^relevent/$', ReleventNoticeListView.as_view(), name="relevent_notice_list"),
    url(r'^search/$', SearchNotices.as_view(), name="notice_search"),
    url(r'add/$', CreateNotice.as_view(), name='notice_add'),
    url(r'', NoticeList.as_view(), name="notice_list"),
]