From 081e7daad6e58b77e0aee4abba38889a93649dbf Mon Sep 17 00:00:00 2001 From: baoliang Date: Sun, 13 Sep 2020 15:21:23 +0800 Subject: [PATCH] add news --- polls/urls.py | 1 + polls/views/__init__.py | 4 ++-- polls/views/__pycache__/__init__.cpython-38.pyc | Bin 625 -> 645 bytes polls/views/__pycache__/news.cpython-38.pyc | Bin 355 -> 859 bytes polls/views/news.py | 16 ++++++++++++++++ 5 files changed, 19 insertions(+), 2 deletions(-) diff --git a/polls/urls.py b/polls/urls.py index 7907663..0ba4fc2 100644 --- a/polls/urls.py +++ b/polls/urls.py @@ -16,6 +16,7 @@ urlpatterns = [ path('notices/read/', views.read_notice, name='polls_read_notice'), path('medias/create/', views.create_media, name='polls_add_media'), path('medias/list/', views.medias, name='polls_medias'), + path('news/list/', views.news_list, name='polls_news'), path('news/detail/', views.news_detail, name='polls_news_detail'), path('monitor/statistics/', views.monitor_statistics, name='polls_monitor_statistics') ] diff --git a/polls/views/__init__.py b/polls/views/__init__.py index 97b8ab9..6926182 100644 --- a/polls/views/__init__.py +++ b/polls/views/__init__.py @@ -1,5 +1,5 @@ from .user import index, status_500, status_401, polls_login, send_code, register_step_one, register_step_two, password_recover_step_one, password_recover_step_two from .notice import notices, read_notice from .media import medias, create_media -from .news import news_detail -from .monitor import monitor_statistics \ No newline at end of file +from .news import news_list, news_detail +from .monitor import monitor_statistics diff --git a/polls/views/__pycache__/__init__.cpython-38.pyc b/polls/views/__pycache__/__init__.cpython-38.pyc index 1ae94de47d17ce2f6b1da88c47928fbf54273d56..1e6d763ab7a1274eabaeb8cc272683a2327aa37d 100644 GIT binary patch delta 105 zcmey!(#pyk%FD~e00fVY#m2i$yFDeoQ@>Vhwi36!3@ySd~xl96# E0OK+G4WOtd1Vd@k#TY{qbj4w l}$DAk9iqG&^>7XYq_Dwij45TZK0N zkd*lZB)-Hg6~92mz1|1~TR!)AeBXDDN25N0_4CKc=_f|WFTC7c@Qu8HW1azU!l@)R zol=UNNmd8b!1F+cbu^8DhdlaDrZJCs0y5$02a@%EgEhIKF4m&qLTA*46Y<4>9KJQG zc`r<>8Y4=IdbcYE8Nzu9$9x6o$dX)9PC2_~8*14yScVQhMYgh1xVTu^h0-o5RbxeCUC6=U2vtpSCbE$W-n{lEp63;(R5H)z~H1YoM8@vN9GQ z%u0e^s<7M0Z-{;fT7TZ<$3|$A&k7~0qM7HdRz8RPVEumm$` zvc3cP_E%u_+!qU{@l9dcatdn0d2BhBN&Py#Xj!#J~NzBY) z2I?qg0_kHcVh56bn#{KZQnC{B()0C-GxCc{l1od9i$JQt(nYKw7J^^{a&K|i