forked from apluslms/a-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlong_urls.py
47 lines (45 loc) · 1.75 KB
/
long_urls.py
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
from django.urls import re_path
from .urls import USER_URL_PREFIX, EDIT_URL_PREFIX
from . import views, staff_views
# These need to be listed before the exercise URL routings.
urlpatterns = [
re_path(USER_URL_PREFIX + r'enroll/$',
views.Enroll.as_view(),
name='enroll'),
# re_path(USER_URL_PREFIX + r'unenroll/$',
# views.Unenroll.as_view(),
# name='unenroll'),
re_path(USER_URL_PREFIX + r'setlang',
views.LanguageView.as_view(),
name="set-enrollment-language"),
re_path(USER_URL_PREFIX + r'export-calendar/$',
views.CalendarExport.as_view(),
name='export-calendar'),
# re_path(USER_URL_PREFIX + r'filter-categories/$',
# views.FilterCategories.as_view(),
# name='filter-categories'),
re_path(USER_URL_PREFIX + r'groups/$',
views.GroupsView.as_view(),
name="groups"),
re_path(USER_URL_PREFIX + r'groups/select/$',
views.GroupSelect.as_view(),
name="group-select"),
re_path(EDIT_URL_PREFIX + r'participants/$',
staff_views.ParticipantsView.as_view(),
name="participants"),
re_path(EDIT_URL_PREFIX + r'enroll-students/$',
staff_views.EnrollStudentsView.as_view(),
name="enroll-students"),
re_path(EDIT_URL_PREFIX + r'groups/$',
staff_views.GroupsView.as_view(),
name="groups-list"),
re_path(EDIT_URL_PREFIX + r'groups/new/$',
staff_views.GroupsEditView.as_view(),
name="groups-add"),
re_path(EDIT_URL_PREFIX + r'groups/(?P<group_id>\d+)/$',
staff_views.GroupsEditView.as_view(),
name="groups-edit"),
re_path(EDIT_URL_PREFIX + r'groups/(?P<group_id>\d+)/delete/$',
staff_views.GroupsDeleteView.as_view(),
name="groups-delete"),
]