Commit 0da1467a by Calen Pennington

Pull out missing variable

parent 88fc2e37
...@@ -83,8 +83,9 @@ def replace_static_urls(text, data_directory, course_namespace=None): ...@@ -83,8 +83,9 @@ def replace_static_urls(text, data_directory, course_namespace=None):
log.warning("From finder: %s", url) log.warning("From finder: %s", url)
# Otherwise, look the file up in staticfiles_storage # Otherwise, look the file up in staticfiles_storage
else: else:
path = data_directory + '/' + rest
try: try:
url = staticfiles_storage.url(data_directory + '/' + rest) url = staticfiles_storage.url(path)
log.warning("From staticfiles_storage: %s", url) log.warning("From staticfiles_storage: %s", url)
# And if that fails, return the path unmodified # And if that fails, return the path unmodified
except Exception as err: except Exception as err:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment