forked from openedx/edx-ora2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
32 lines (24 loc) · 846 Bytes
/
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
import workbench.urls
from django.conf.urls import include
from django.contrib import admin
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
re_path(r'^peer/evaluations/', include(openassessment.assessment.urls)),
# JavaScript i18n
re_path(r'^jsi18n/$', JavaScriptCatalog.as_view(), JS_INFO_DICT),
# File upload to local filesystem
re_path(r'^openassessment/storage',
include(openassessment.fileupload.urls)),
]