urls.py 1.39 KB
Newer Older
1 2 3 4 5
from django.conf.urls import url, include

from com.views import *

urlpatterns = [
6 7 8
    url(r'^sith/edit/alert$', AlertMsgEditView.as_view(), name='alert_edit'),
    url(r'^sith/edit/info$', InfoMsgEditView.as_view(), name='info_edit'),
    url(r'^sith/edit/index$', IndexEditView.as_view(), name='index_edit'),
Skia's avatar
Skia committed
9
    url(r'^sith/edit/weekmail_destinations$', WeekmailDestinationEditView.as_view(), name='weekmail_destinations'),
Skia's avatar
Skia committed
10
    url(r'^weekmail$', WeekmailEditView.as_view(), name='weekmail'),
Skia's avatar
Skia committed
11
    url(r'^weekmail/preview$', WeekmailPreviewView.as_view(), name='weekmail_preview'),
Skia's avatar
Skia committed
12
    url(r'^weekmail/new_article$', WeekmailArticleCreateView.as_view(), name='weekmail_article'),
Skia's avatar
Skia committed
13 14
    url(r'^weekmail/article/(?P<article_id>[0-9]+)/delete$', WeekmailArticleDeleteView.as_view(), name='weekmail_article_delete'),
    url(r'^weekmail/article/(?P<article_id>[0-9]+)/edit$', WeekmailArticleEditView.as_view(), name='weekmail_article_edit'),
15 16 17
    url(r'^news$', NewsListView.as_view(), name='news_list'),
    url(r'^news/admin$', NewsAdminListView.as_view(), name='news_admin_list'),
    url(r'^news/create$', NewsCreateView.as_view(), name='news_new'),
Skia's avatar
Skia committed
18
    url(r'^news/(?P<news_id>[0-9]+)/moderate$', NewsModerateView.as_view(), name='news_moderate'),
19 20
    url(r'^news/(?P<news_id>[0-9]+)/edit$', NewsEditView.as_view(), name='news_edit'),
    url(r'^news/(?P<news_id>[0-9]+)$', NewsDetailView.as_view(), name='news_detail'),
21 22
]