forked from openedx/edx-ora2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathurls.py
More file actions
32 lines (24 loc) · 831 Bytes
/
urls.py
File metadata and controls
32 lines (24 loc) · 831 Bytes
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
import workbench.urls
from django.contrib import admin
from django.urls import include, path
from django.urls import re_path
from django.views.i18n import JavaScriptCatalog
import openassessment.assessment.urls
import openassessment.fileupload.urls
# Packages to include in the JavaScript i18n strings
JS_INFO_DICT = {
'packages': ('openassessment.xblock',),
}
urlpatterns = [
# Django built-in
re_path(r'^admin/', admin.site.urls),
# Provided by XBlock
re_path(r'^/?', include(workbench.urls)),
# edx-ora2 apps
path('peer/evaluations/', include(openassessment.assessment.urls)),
# JavaScript i18n
path('jsi18n/', JavaScriptCatalog.as_view(), JS_INFO_DICT),
# File upload to local filesystem
path('openassessment/storage',
include(openassessment.fileupload.urls)),
]