forked from noraiz-anwar/edx-ora2
-
Notifications
You must be signed in to change notification settings - Fork 2
/
urls.py
40 lines (31 loc) · 1.22 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
from __future__ import absolute_import
from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.views.i18n import javascript_catalog
import openassessment.assessment.urls
import openassessment.fileupload.urls
import workbench.urls
# Packages to include in the JavaScript i18n strings
JS_INFO_DICT = {
'packages': ('openassessment.xblock',),
}
urlpatterns = [
# Django built-in
url(r'^admin/', include(admin.site.urls)),
# Provided by XBlock
url(r'^/?', include(workbench.urls)),
# edx-ora2 apps
url(r'^peer/evaluations/', include(openassessment.assessment.urls)),
# JavaScript i18n
url(r'^jsi18n/$', javascript_catalog, JS_INFO_DICT),
# File upload to local filesystem
url(r'^openassessment/storage', include(openassessment.fileupload.urls)),
]
# We need to do explicit setup of the Django debug toolbar because autodiscovery
# causes problems when you mix debug toolbar >= 1.0 + django < 1.7, and the
# admin uses autodiscovery. See:
# http://django-debug-toolbar.readthedocs.org/en/1.0/installation.html#explicit-setup
if settings.DEBUG:
import debug_toolbar
urlpatterns.append(url(r'^__debug__/', include(debug_toolbar.urls)))