diff sat_website/utils.py @ 58:746e53efc188

allow large media files (screencasts) to be stored on an external server
author souliane <souliane@mailoo.org>
date Thu, 14 May 2015 23:37:56 +0200
parents 1a0f24401866
children b1c16cd53b62
line wrap: on
line diff
--- a/sat_website/utils.py	Thu May 14 22:46:57 2015 +0200
+++ b/sat_website/utils.py	Thu May 14 23:37:56 2015 +0200
@@ -44,7 +44,7 @@
         int_path = join(settings.PROJECTS_INTERNAL_PATH, path)  # this is a symbolic link
         # base name of the real path MUST look like: <project>-<version><ARCHIVE_SUFFIX>
         version = basename(realpath(int_path))[len(name) + 1:-len(settings.ARCHIVE_SUFFIX)]
-        ext_path = join(settings.PROJECTS_EXTERNAL_PATH, path)
+        ext_path = join(settings.PROJECTS_EXTERNAL_URL, path)
         result[name] = (ext_path, version, infos[name] if name in infos else '')
 
     return result