Skip to content
Snippets Groups Projects
Commit d3718ef1 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

BUGFIX on sstatic when running in not DEBUG environment

parent e980f7e6
No related branches found
No related tags found
No related merge requests found
Pipeline #9354 passed
...@@ -15,7 +15,7 @@ def sstatic(path): ...@@ -15,7 +15,7 @@ def sstatic(path):
''' '''
Returns absolute URL to static file with versioning. Returns absolute URL to static file with versioning.
''' '''
full_path = os.path.join(settings.STATIC_ROOT, path[1:] if path[0] == '/' else path) full_path = os.path.join(settings.STATIC_URL, path[1:] if path[0] == '/' else path)
if not settings.DEBUG: if not settings.DEBUG:
return full_path return full_path
try: try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment