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
3df40a1f
Commit
3df40a1f
authored
Aug 12, 2012
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow xqa server url to be set by MITX_FEATURES['USE_XQA_SERVER']
parent
090aa5d5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
2 deletions
+5
-2
common/djangoapps/xmodule_modifiers.py
+1
-0
lms/envs/dev.py
+1
-0
lms/envs/dev_ike.py
+1
-0
lms/templates/staff_problem_info.html
+2
-2
No files found.
common/djangoapps/xmodule_modifiers.py
View file @
3df40a1f
...
@@ -110,6 +110,7 @@ def add_histogram(get_html, module, user):
...
@@ -110,6 +110,7 @@ def add_histogram(get_html, module, user):
'element_id'
:
module
.
location
.
html_id
()
.
replace
(
'-'
,
'_'
),
'element_id'
:
module
.
location
.
html_id
()
.
replace
(
'-'
,
'_'
),
'edit_link'
:
edit_link
,
'edit_link'
:
edit_link
,
'user'
:
user
,
'user'
:
user
,
'xqa_server'
:
settings
.
MITX_FEATURES
.
get
(
'USE_XQA_SERVER'
,
'http://xqa:server@content-qa.mitx.mit.edu'
),
'histogram'
:
json
.
dumps
(
histogram
),
'histogram'
:
json
.
dumps
(
histogram
),
'render_histogram'
:
render_histogram
,
'render_histogram'
:
render_histogram
,
'module_content'
:
get_html
()}
'module_content'
:
get_html
()}
...
...
lms/envs/dev.py
View file @
3df40a1f
...
@@ -62,6 +62,7 @@ SECRET_KEY = '85920908f28904ed733fe576320db18cabd7b6cd'
...
@@ -62,6 +62,7 @@ SECRET_KEY = '85920908f28904ed733fe576320db18cabd7b6cd'
################################ LMS Migration #################################
################################ LMS Migration #################################
MITX_FEATURES
[
'ENABLE_LMS_MIGRATION'
]
=
True
MITX_FEATURES
[
'ENABLE_LMS_MIGRATION'
]
=
True
MITX_FEATURES
[
'ACCESS_REQUIRE_STAFF_FOR_COURSE'
]
=
False
# require that user be in the staff_* group to be able to enroll
MITX_FEATURES
[
'ACCESS_REQUIRE_STAFF_FOR_COURSE'
]
=
False
# require that user be in the staff_* group to be able to enroll
MITX_FEATURES
[
'USE_XQA_SERVER'
]
=
'http://xqa:server@content-qa.mitx.mit.edu'
LMS_MIGRATION_ALLOWED_IPS
=
[
'127.0.0.1'
]
LMS_MIGRATION_ALLOWED_IPS
=
[
'127.0.0.1'
]
...
...
lms/envs/dev_ike.py
View file @
3df40a1f
...
@@ -20,6 +20,7 @@ MITX_FEATURES['ACCESS_REQUIRE_STAFF_FOR_COURSE'] = True # require that user be
...
@@ -20,6 +20,7 @@ MITX_FEATURES['ACCESS_REQUIRE_STAFF_FOR_COURSE'] = True # require that user be
myhost
=
socket
.
gethostname
()
myhost
=
socket
.
gethostname
()
if
(
'edxvm'
in
myhost
)
or
(
'ocw'
in
myhost
):
if
(
'edxvm'
in
myhost
)
or
(
'ocw'
in
myhost
):
MITX_FEATURES
[
'DISABLE_LOGIN_BUTTON'
]
=
True
# auto-login with MIT certificate
MITX_FEATURES
[
'DISABLE_LOGIN_BUTTON'
]
=
True
# auto-login with MIT certificate
MITX_FEATURES
[
'USE_XQA_SERVER'
]
=
'https://qisx.mit.edu/xqa'
# needs to be ssl or browser blocks it
SECURE_PROXY_SSL_HEADER
=
(
'HTTP_X_FORWARDED_PROTOCOL'
,
'https'
)
# django 1.4 for nginx ssl proxy
SECURE_PROXY_SSL_HEADER
=
(
'HTTP_X_FORWARDED_PROTOCOL'
,
'https'
)
# django 1.4 for nginx ssl proxy
...
...
lms/templates/staff_problem_info.html
View file @
3df40a1f
...
@@ -75,7 +75,7 @@ function sendlog_${element_id}(){
...
@@ -75,7 +75,7 @@ function sendlog_${element_id}(){
entry
:
$
(
'#${element_id}_xqa_entry'
).
val
()};
entry
:
$
(
'#${element_id}_xqa_entry'
).
val
()};
$
.
ajax
({
$
.
ajax
({
url
:
'
http://xqa:server@content-qa.mitx.mit.edu
/log'
,
url
:
'
${xqa_server}
/log'
,
type
:
'GET'
,
type
:
'GET'
,
contentType
:
'application/json'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
xqaLog
),
data
:
JSON
.
stringify
(
xqaLog
),
...
@@ -101,7 +101,7 @@ var xqaQuery = {authkey: '${xqa_key}',
...
@@ -101,7 +101,7 @@ var xqaQuery = {authkey: '${xqa_key}',
format
:
'html'
};
format
:
'html'
};
$
.
ajax
({
$
.
ajax
({
url
:
'
http://xqa:server@content-qa.mitx.mit.edu
/query'
,
url
:
'
${xqa_server}
/query'
,
type
:
'GET'
,
type
:
'GET'
,
contentType
:
'application/json'
,
contentType
:
'application/json'
,
data
:
JSON
.
stringify
(
xqaQuery
),
data
:
JSON
.
stringify
(
xqaQuery
),
...
...
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