Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
3b4093ab
Commit
3b4093ab
authored
Apr 14, 2013
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
url and mitx_settings for masquerade
parent
168a3aad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
lms/envs/common.py
+2
-0
lms/urls.py
+7
-3
No files found.
lms/envs/common.py
View file @
3b4093ab
...
...
@@ -71,6 +71,8 @@ MITX_FEATURES = {
'ENABLE_LMS_MIGRATION'
:
False
,
'ENABLE_MANUAL_GIT_RELOAD'
:
False
,
'ENABLE_MASQUERADE'
:
True
,
# allow course staff to change to student view of courseware
'DISABLE_LOGIN_BUTTON'
:
False
,
# used in systems where login is automatic, eg MIT SSL
'STUB_VIDEO_FOR_TESTING'
:
False
,
# do not display video when running automated acceptance tests
...
...
lms/urls.py
View file @
3b4093ab
...
...
@@ -201,9 +201,6 @@ if settings.WIKI_ENABLED:
if
settings
.
COURSEWARE_ENABLED
:
urlpatterns
+=
(
# Hook django-masquerade, allowing staff to view site as other users
url
(
r'^masquerade/'
,
include
(
'masquerade.urls'
)),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/jump_to/(?P<location>.*)$'
,
'courseware.views.jump_to'
,
name
=
"jump_to"
),
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/modx/(?P<location>.*?)/(?P<dispatch>[^/]*)$'
,
...
...
@@ -345,6 +342,13 @@ if settings.COURSEWARE_ENABLED:
'open_ended_grading.views.peer_grading'
,
name
=
'peer_grading'
),
)
# allow course staff to change to student view of courseware
if
settings
.
MITX_FEATURES
.
get
(
'ENABLE_MASQUERADE'
):
urlpatterns
+=
(
url
(
r'^masquerade/(?P<marg>.*)$'
,
'courseware.masquerade.handle_ajax'
,
name
=
"masquerate-switch"
),
)
# discussion forums live within courseware, so courseware must be enabled first
if
settings
.
MITX_FEATURES
.
get
(
'ENABLE_DISCUSSION_SERVICE'
):
urlpatterns
+=
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment