2016-12-21 01:38:21 +00:00
|
|
|
from django.conf.urls import url, include
|
|
|
|
|
|
|
|
from com.views import *
|
|
|
|
|
|
|
|
urlpatterns = [
|
2016-12-23 02:02:46 +00:00
|
|
|
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'),
|
2017-01-02 23:07:45 +00:00
|
|
|
url(r'^weekmail$', WeekmailEditView.as_view(), name='weekmail'),
|
2016-12-23 02:02:46 +00:00
|
|
|
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'),
|
2016-12-23 17:40:12 +00:00
|
|
|
url(r'^news/(?P<news_id>[0-9]+)/moderate$', NewsModerateView.as_view(), name='news_moderate'),
|
2016-12-23 02:02:46 +00:00
|
|
|
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'),
|
2016-12-21 01:38:21 +00:00
|
|
|
]
|
|
|
|
|