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
0e4c0811
Commit
0e4c0811
authored
May 28, 2013
by
Christina Roberts
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2115 from edx/bug/christina/preview_url
Bug/christina/preview url
parents
b668ab62
aca5cbb2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
6 deletions
+8
-6
cms/djangoapps/contentstore/tests/test_utils.py
+1
-1
cms/djangoapps/contentstore/utils.py
+1
-1
cms/djangoapps/contentstore/views/component.py
+1
-2
cms/envs/aws.py
+1
-0
cms/envs/common.py
+2
-2
cms/envs/dev.py
+1
-0
cms/envs/test.py
+1
-0
No files found.
cms/djangoapps/contentstore/tests/test_utils.py
View file @
0e4c0811
...
...
@@ -26,7 +26,7 @@ class LMSLinksTestCase(TestCase):
link
=
utils
.
get_lms_link_for_item
(
location
,
True
)
self
.
assertEquals
(
link
,
"//preview
.localhost:8000
/courses/mitX/101/test/jump_to/i4x://mitX/101/vertical/contacting_us"
"//preview/courses/mitX/101/test/jump_to/i4x://mitX/101/vertical/contacting_us"
)
...
...
cms/djangoapps/contentstore/utils.py
View file @
0e4c0811
...
...
@@ -88,7 +88,7 @@ def get_lms_link_for_item(location, preview=False, course_id=None):
if
settings
.
LMS_BASE
is
not
None
:
if
preview
:
lms_base
=
settings
.
MITX_FEATURES
.
get
(
'PREVIEW_LMS_BASE'
,
'preview.'
+
settings
.
LMS_BASE
)
lms_base
=
settings
.
MITX_FEATURES
.
get
(
'PREVIEW_LMS_BASE'
)
else
:
lms_base
=
settings
.
LMS_BASE
...
...
cms/djangoapps/contentstore/views/component.py
View file @
0e4c0811
...
...
@@ -179,8 +179,7 @@ def edit_unit(request, location):
break
index
=
index
+
1
preview_lms_base
=
settings
.
MITX_FEATURES
.
get
(
'PREVIEW_LMS_BASE'
,
'preview.'
+
settings
.
LMS_BASE
)
preview_lms_base
=
settings
.
MITX_FEATURES
.
get
(
'PREVIEW_LMS_BASE'
)
preview_lms_link
=
'//{preview_lms_base}/courses/{org}/{course}/{course_name}/courseware/{section}/{subsection}/{index}'
.
format
(
preview_lms_base
=
preview_lms_base
,
...
...
cms/envs/aws.py
View file @
0e4c0811
...
...
@@ -81,6 +81,7 @@ with open(ENV_ROOT / CONFIG_PREFIX + "env.json") as env_file:
ENV_TOKENS
=
json
.
load
(
env_file
)
LMS_BASE
=
ENV_TOKENS
.
get
(
'LMS_BASE'
)
# Note that MITX_FEATURES['PREVIEW_LMS_BASE'] gets read in from the environment file.
SITE_NAME
=
ENV_TOKENS
[
'SITE_NAME'
]
...
...
cms/envs/common.py
View file @
0e4c0811
...
...
@@ -39,8 +39,8 @@ MITX_FEATURES = {
'STUDIO_NPS_SURVEY'
:
True
,
'SEGMENT_IO'
:
True
,
# Enable URL that shows information about the status of vari
u
ous services
'ENABLE_SERVICE_STATUS'
:
False
,
# Enable URL that shows information about the status of various services
'ENABLE_SERVICE_STATUS'
:
False
}
ENABLE_JASMINE
=
False
...
...
cms/envs/dev.py
View file @
0e4c0811
...
...
@@ -55,6 +55,7 @@ DATABASES = {
}
LMS_BASE
=
"localhost:8000"
MITX_FEATURES
[
'PREVIEW_LMS_BASE'
]
=
"localhost:8000"
REPOS
=
{
'edx4edx'
:
{
...
...
cms/envs/test.py
View file @
0e4c0811
...
...
@@ -82,6 +82,7 @@ DATABASES = {
}
LMS_BASE
=
"localhost:8000"
MITX_FEATURES
[
'PREVIEW_LMS_BASE'
]
=
"preview"
CACHES
=
{
# This is the cache used for most things. Askbot will not work without a
...
...
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