55 lines
2.9 KiB
Python
55 lines
2.9 KiB
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
path('', views.index, name='index'),
|
|
path('status_500', views.status_500, name='status_500'),
|
|
path('status_401', views.status_401, name='status_401'),
|
|
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'),
|
|
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'),
|
|
path('notices/list/', views.notices, name='polls_notices'),
|
|
path('notices/top/', views.notice_top, name='polls_notice_top'),
|
|
path('notices/read/', views.read_notice, name='polls_read_notice'),
|
|
path('notices/pass/', views.pass_notice, name='polls_pass_notice'),
|
|
path('notices/reject/', views.reject_notice, name='polls_reject_notice'),
|
|
path('notices/detail/<str:notice_id>/', views.detail_notice, name='polls_detail_notice'),
|
|
path('medias/create/', views.create_media, name='polls_add_media'),
|
|
path('medias/update/', views.update_media, name='polls_update_media'),
|
|
path('medias/list/', views.medias, name='polls_medias'),
|
|
path('medias/my/', views.my_medias, name='polls_my_medias'),
|
|
path('medias/<str:type>/<str:media_id>/',
|
|
views.media_detail, name='polls_media_detail'),
|
|
path('medias/delete/', views.delete_media, name='polls_delete_media'),
|
|
path('news/list/', views.news_list, name='polls_news'),
|
|
path('news/top/', views.news_top, name='polls_news_top'),
|
|
path('news/detail/<str:news_id>/',
|
|
views.news_detail, name='polls_news_detail'),
|
|
path('monitor/statistics/', views.monitor_statistics,
|
|
name='polls_monitor_statistics'),
|
|
path('monitor/result/', views.monitor_result,
|
|
name='polls_monitor_result'),
|
|
path('tasks/list/', views.tasks, name='polls_tasks_list'),
|
|
path('tasks/create/', views.create_task, name='polls_tasks_create'),
|
|
path('tasks/create_test/', views.create_test_task,
|
|
name='polls_tasks_create_test'),
|
|
path('groups/list/', views.groups, name='polls_groups_list'),
|
|
path('groups/test-room/', views.room, name='polls_group_test_room'),
|
|
path('compartments/list/', views.compartments,
|
|
name='polls_compartments_list'),
|
|
path('organizations/list/', views.organizations,
|
|
name='polls_organizations_list'),
|
|
path('organizations/level/', views.organization_level,
|
|
name='polls_organization_level'),
|
|
path('messages/list/last/', views.last_messages,
|
|
name='polls_messages_list_last'),
|
|
path('messages/send/text/', views.send_text_message,
|
|
name='polls_message_send_text')
|
|
]
|