forked from apluslms/a-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
65 lines (60 loc) · 2.3 KB
/
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
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 course.urls import EDIT_URL_PREFIX
from . import views
MODEL_URL_PREFIX = EDIT_URL_PREFIX + r'(?P<model>[\w\d\-]+)/'
urlpatterns = [
url(EDIT_URL_PREFIX + r'$',
views.EditContentView.as_view(),
name='course-edit'),
url(EDIT_URL_PREFIX + r'instances/$',
views.CloneInstanceView.as_view(),
name='course-clone'),
url(EDIT_URL_PREFIX + r'course/$',
views.EditInstanceView.as_view(),
name='course-details'),
url(EDIT_URL_PREFIX + r'index/$',
views.EditIndexView.as_view(),
name='course-index'),
url(EDIT_URL_PREFIX + r'configure-content/$',
views.ConfigureContentView.as_view(),
name='course-configure'),
url(EDIT_URL_PREFIX + r'course-build-log/$',
views.BuildLogView.as_view(),
name='course-build-log'),
url(EDIT_URL_PREFIX + r'tags/$',
views.UserTagListView.as_view(),
name='course-tags'),
url(EDIT_URL_PREFIX + r'tags/new/$',
views.UserTagAddView.as_view(),
name='course-tags-add'),
url(EDIT_URL_PREFIX + r'tags/(?P<tag_id>\d+)/edit$',
views.UserTagEditView.as_view(),
name='course-tags-edit'),
url(EDIT_URL_PREFIX + r'tags/(?P<tag_id>\d+)/remove$',
views.UserTagDeleteView.as_view(),
name='course-tags-remove'),
url(EDIT_URL_PREFIX + r'tags/(?P<tag_id>\d+)/new-tagging$',
views.UserTaggingAddView.as_view(),
name='course-taggings-add'),
url(EDIT_URL_PREFIX + r'batch-assess/$',
views.BatchCreateSubmissionsView.as_view(),
name='batch-assess'),
url(r'^admin/signin-as-user$',
views.SignInAsUser.as_view(),
name='signin-as-user'),
url(MODEL_URL_PREFIX + r'add/$',
views.ModelEditView.as_view(),
name='model-create'),
url(MODEL_URL_PREFIX + r'add/(?P<parent_id>\d+)/$',
views.ModelEditView.as_view(),
name='model-create-for'),
url(MODEL_URL_PREFIX + r'add/(?P<parent_id>\d+)/(?P<type>[\w\d\-]+)/$',
views.ModelEditView.as_view(),
name='model-create-type-for'),
url(MODEL_URL_PREFIX + r'(?P<id>\d+)/$',
views.ModelEditView.as_view(),
name='model-edit'),
url(MODEL_URL_PREFIX + r'(?P<id>\d+)/delete/$',
views.ModelDeleteView.as_view(),
name='model-remove'),
]