urls.py
3.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
from django.conf.urls import url
from django.urls import path
from . import views
urlpatterns = [
url(r'^$', views.sequences_list, name="sequences_list"),
url(r'^(?P<status>-?\d)/(?P<message>.+)$',
views.sequences_list, name="sequences_list"),
url(r'^action_request/(?P<req_id>\d+)/(?P<action>[a-z_]{1,20})$',
views.action_request, name="action_request"),
url(r'^action_request/(?P<req_id>\d+)/(?P<action>[a-z_]{1,20})/(?P<status>-?\d)/(?P<message>.+)$',
views.action_request, name="action_request_message"),
url(r'^action_sequence/(?P<seq_id>\d+)/(?P<action>[a-z_]{1,20})$',
views.action_sequence, name="action_sequence"),
url(r'^action_sequence/(?P<seq_id>\d+)/(?P<action>[a-z_]{1,20})/(?P<status>-?\d)/(?P<message>.+)$',
views.action_sequence, name="action_sequence_message"),
url(r'^action_album/(?P<alb_id>\d+)/(?P<action>[a-z_]{1,20})$',
views.action_album, name="action_album"),
url(r'^action_album/(?P<alb_id>\d+)/(?P<action>[a-z_]{1,20})/(?P<status>-?\d)/(?P<message>.+)$',
views.action_album, name="action_album_message"),
url(r'^action_plan/(?P<plan_id>\d+)/(?P<action>[a-z_]{1,20})$',
views.action_plan, name="action_plan"),
url(r'^action_plan/(?P<plan_id>\d+)/(?P<action>[a-z_]{1,20})/(?P<status>-?\d)/(?P<message>.+)$',
views.action_plan, name="action_plan_message"),
url(r'^request_validate/(?P<req_id>\d+)$',
views.request_validate, name="request_validate"),
url(r'^sequence_validate/(?P<seq_id>\d+)$',
views.sequence_validate, name="sequence_validate"),
url(r'^album_validate/(?P<alb_id>\d+)$',
views.album_validate, name="album_validate"),
url(r'^plan_validate/(?P<plan_id>\d+)$',
views.plan_validate, name="plan_validate"),
url(r'^create_request$', views.create_request, name="create_request"),
#url(r'^create_sequence/(?P<req_id>\d+)$', views.create_sequence, name="create_sequence"),
url(r'^create_sequence/', views.create_sequence, name="create_sequence"),
url(r'^create_album/(?P<seq_id>\d+)$',
views.create_album, name="create_album"),
url(r'^create_plan/(?P<alb_id>\d+)$', views.create_plan, name="create_plan"),
url(r'^submit_request/(?P<req_id>\d+)/(?P<redir>[a-z_]{1,20})$',
views.submit_request, name="submit_request"),
url(r'^unsubmit_request/(?P<req_id>\d+)$',
views.unsubmit_request, name="unsubmit_request"),
url(r'^export_request/(?P<req_id>\d+)$',
views.export_request, name="export_request"),
url(r'^import_request$', views.import_request, name="import_request"),
# path("test_create_plan",views.test_create_plan,name="test_create_plan"),
path("edit_plan/<int:id>", views.edit_plan, name="edit_plan"),
path("delete_albums/<int:seq_id>", views.delete_albums, name="delete_albums"),
path("create_albums/<int:seq_id>/<str:layout>",
views.create_albums, name="create_albums"),
path("export_sequence/<int:seq_id>/<str:type>",
views.export_sequence, name="export_sequence"),
path("import_sequence/", views.import_sequence, name="import_sequence"),
path("copy_sequence/<int:seq_id>", views.copy_sequence, name="copy_sequence"),
path("unsubmit_sequence/<int:seq_id>", views.unsubmit_sequence, name="unsubmit_sequence")
]