newmediamonitoring/polls/urls.py

79 lines
4.4 KiB
Python
Raw Normal View History

2020-08-20 07:38:42 +00:00
from django.urls import path
from . import views
2020-11-17 00:45:44 +00:00
from . import tasks
2020-08-20 07:38:42 +00:00
urlpatterns = [
path('', views.index, name='index'),
path('status_500', views.status_500, name='status_500'),
path('status_401', views.status_401, name='status_401'),
2020-09-03 09:46:04 +00:00
path('login/', views.polls_login, name='polls_login'),
path('send_code/', views.send_code, name='polls_send_code'),
path('register/', views.register_step_one, name='polls_register'),
path('register/save/', views.register_step_two, name='polls_register_save'),
2020-09-26 07:34:36 +00:00
path('password/recovery/', views.password_recover_step_one,
name='polls_password_recovery'),
path('password/recovery/save/', views.password_recover_step_two,
name='polls_password_recovery_save'),
2020-10-22 13:52:48 +00:00
path('password/reset/', views.reset_password, name='polls_password_reset'),
2020-09-03 09:46:04 +00:00
path('notices/list/', views.notices, name='polls_notices'),
2020-09-24 06:51:39 +00:00
path('notices/top/', views.notice_top, name='polls_notice_top'),
2020-09-03 09:46:04 +00:00
path('notices/read/', views.read_notice, name='polls_read_notice'),
2020-10-08 07:12:48 +00:00
path('notices/pass/', views.pass_notice, name='polls_pass_notice'),
path('notices/reject/', views.reject_notice, name='polls_reject_notice'),
2020-10-09 12:09:15 +00:00
path('notices/detail/<str:notice_id>/',
views.detail_notice, name='polls_detail_notice'),
2020-10-22 13:52:48 +00:00
path('notices/unread/count/', views.unread_notice_count,
name='polls_notice_unread_count'),
2020-09-03 09:46:04 +00:00
path('medias/create/', views.create_media, name='polls_add_media'),
2020-09-22 07:39:33 +00:00
path('medias/update/', views.update_media, name='polls_update_media'),
2020-09-09 17:21:45 +00:00
path('medias/list/', views.medias, name='polls_medias'),
2020-09-23 09:47:05 +00:00
path('medias/my/', views.my_medias, name='polls_my_medias'),
2020-10-26 00:56:41 +00:00
path('medias/admin/change/', views.media_admin_change, name='polls_media_admin_change'),
2020-09-26 07:34:36 +00:00
path('medias/<str:type>/<str:media_id>/',
views.media_detail, name='polls_media_detail'),
2020-10-08 07:12:48 +00:00
path('medias/delete/', views.delete_media, name='polls_delete_media'),
2020-09-13 07:21:23 +00:00
path('news/list/', views.news_list, name='polls_news'),
2020-09-23 09:47:05 +00:00
path('news/top/', views.news_top, name='polls_news_top'),
2020-09-26 07:34:36 +00:00
path('news/detail/<str:news_id>/',
views.news_detail, name='polls_news_detail'),
path('monitor/statistics/', views.monitor_statistics,
name='polls_monitor_statistics'),
2020-10-09 12:09:15 +00:00
path('monitor/media/statistics/', views.media_statistics,
name='polls_media_statistics'),
path('monitor/city/ranking/', views.city_ranking, name='polls_city_ranking'),
2020-09-26 10:22:59 +00:00
path('monitor/result/', views.monitor_result,
name='polls_monitor_result'),
2020-09-18 16:11:19 +00:00
path('tasks/list/', views.tasks, name='polls_tasks_list'),
path('tasks/create/', views.create_task, name='polls_tasks_create'),
2020-10-10 14:44:15 +00:00
path('tasks/get/', views.get_task, name='polls_tasks_get'),
2020-09-26 07:34:36 +00:00
path('tasks/create_test/', views.create_test_task,
name='polls_tasks_create_test'),
2020-09-20 11:14:54 +00:00
path('groups/list/', views.groups, name='polls_groups_list'),
2020-10-22 05:36:23 +00:00
path('groups/pick/', views.pick_groups, name='polls_groups_pick'),
2020-10-10 07:46:04 +00:00
path('groups/level/', views.is_level1_or_leve2, name='polls_groups_level'),
2020-09-24 06:51:39 +00:00
path('groups/test-room/', views.room, name='polls_group_test_room'),
2020-10-10 07:46:04 +00:00
path('groups/manager/', views.group_manager, name='polls_groups_manager'),
path('groups/member/', views.group_member, name='polls_groups_member'),
2020-10-10 14:44:15 +00:00
path('groups/enter/', views.group_enter, name='polls_groups_enter'),
path('groups/leave/', views.group_leave, name='polls_groups_leave'),
2020-09-26 07:34:36 +00:00
path('compartments/list/', views.compartments,
name='polls_compartments_list'),
path('organizations/list/', views.organizations,
name='polls_organizations_list'),
2020-10-04 15:09:07 +00:00
path('organizations/level/', views.organization_level,
name='polls_organization_level'),
2020-09-26 07:34:36 +00:00
path('messages/list/last/', views.last_messages,
name='polls_messages_list_last'),
path('messages/send/text/', views.send_text_message,
2020-10-10 14:44:15 +00:00
name='polls_message_send_text'),
path('messages/check/', views.is_read_message,
name='polls_message_check'),
path('messages/read/', views.read_message,
2020-10-11 08:58:55 +00:00
name='polls_message_read'),
2020-10-11 09:23:54 +00:00
path('app/intro.html', views.app_intro, name='polls_app_intro'),
2020-10-27 13:02:08 +00:00
path('app/download/', views.download, name='polls_app_download'),
2020-11-28 10:23:56 +00:00
path('app/has/update/', views.has_update, name='polls_app_has_update'),
2020-11-28 14:01:26 +00:00
path('app/profile/image/upload/', views.upload_profile, name='polls_profile_upload'),
2020-11-18 09:48:44 +00:00
]
tasks.process_notify_task(repeat=5)