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

Merge branch 'master' into wizard_form

parents ea855082 d3718ef1
No related branches found
No related tags found
1 merge request!1Wizard form
Pipeline #9325 passed
......@@ -3,7 +3,7 @@
{% block title %}inhibitors of Protein-Protein Interaction Database{% endblock %}
{% block extra_css %}
<link rel="stylesheet" href="/static/css/admin-session.css">
<link rel="stylesheet" href="{% sstatic '/css/admin-session.css' %}">
{% endblock %}
{% block content %}
......
......@@ -15,9 +15,9 @@ def sstatic(path):
'''
Returns absolute URL to static file with versioning.
'''
full_path = os.path.join(settings.STATIC_URL, path[1:] if path[0] == '/' else path)
if not settings.DEBUG:
return path
full_path = os.path.join(settings.STATIC_ROOT, path[1:] if path[0] == '/' else path)
return full_path
try:
# Get file modification time.
mtime = os.path.getmtime(full_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment