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
2fe4895e
Commit
2fe4895e
authored
Aug 20, 2013
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more static_asset_path handling in courses.py
parent
210fa112
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
lms/djangoapps/courseware/courses.py
+4
-2
No files found.
lms/djangoapps/courseware/courses.py
View file @
2fe4895e
...
...
@@ -156,7 +156,8 @@ def get_course_about_section(course, section_key):
model_data_cache
,
course
.
id
,
not_found_ok
=
True
,
wrap_xmodule_display
=
False
wrap_xmodule_display
=
False
,
static_asset_path
=
course
.
lms
.
static_asset_path
)
html
=
''
...
...
@@ -245,7 +246,8 @@ def get_course_syllabus_section(course, section_key):
return
replace_static_urls
(
htmlFile
.
read
()
.
decode
(
'utf-8'
),
getattr
(
course
,
'data_dir'
,
None
),
course_id
=
course
.
location
.
course_id
course_id
=
course
.
location
.
course_id
,
static_asset_path
=
course
.
lms
.
static_asset_path
,
)
except
ResourceNotFoundError
:
log
.
exception
(
"Missing syllabus section {key} in course {url}"
.
format
(
...
...
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