Prefix courseware urls with /static, since they are no longer served through collectstatic

This commit is contained in:
Calen Pennington
2013-01-29 13:48:07 -05:00
parent d132f2e18a
commit 89f984c08b
2 changed files with 2 additions and 2 deletions

View File

@@ -280,7 +280,7 @@ def _get_module(user, request, descriptor, student_module_cache, course_id,
module.get_html = replace_static_urls(
_get_html,
module.metadata['data_dir'] if 'data_dir' in module.metadata else '',
'/static/' + module.metadata['data_dir'] if 'data_dir' in module.metadata else '',
course_namespace = module.location._replace(category=None, name=None))
# Allow URLs of the form '/course/' refer to the root of multicourse directory