forked from apluslms/a-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
long_urls.py
38 lines (36 loc) · 1.35 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
from django.conf.urls import url
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 = [
url(USER_URL_PREFIX + r'enroll/$',
views.Enroll.as_view(),
name='enroll'),
url(USER_URL_PREFIX + r'export-calendar/$',
views.CalendarExport.as_view(),
name='export-calendar'),
# url(USER_URL_PREFIX + r'filter-categories/$',
# views.FilterCategories.as_view(),
# name='filter-categories'),
url(USER_URL_PREFIX + r'groups/$',
views.GroupsView.as_view(),
name="groups"),
url(USER_URL_PREFIX + r'groups/select/$',
views.GroupSelect.as_view(),
name="group-select"),
url(EDIT_URL_PREFIX + r'participants/$',
staff_views.ParticipantsView.as_view(),
name="participants"),
url(EDIT_URL_PREFIX + r'groups/$',
staff_views.GroupsView.as_view(),
name="groups-list"),
url(EDIT_URL_PREFIX + r'groups/new/$',
staff_views.GroupsEditView.as_view(),
name="groups-add"),
url(EDIT_URL_PREFIX + r'groups/(?P<group_id>\d+)/$',
staff_views.GroupsEditView.as_view(),
name="groups-edit"),
url(EDIT_URL_PREFIX + r'groups/(?P<group_id>\d+)/delete/$',
staff_views.GroupsDeleteView.as_view(),
name="groups-delete"),
]