replace use of STATIC_URL by staticfiles directives (fixes #14844)

This commit is contained in:
Benjamin Dauvergne 2017-02-01 17:07:30 +01:00
parent b9da59b418
commit ff0e166f6c
1 changed files with 4 additions and 4 deletions

View File

@ -1,19 +1,19 @@
{% load i18n gadjo %}<!DOCTYPE html>
{% load i18n gadjo staticfiles %}<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>{% block page-title %}{% endblock %}</title>
<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/gadjo.css"/>
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/gadjo.css" %}"/>
{% block gadjo-js %}
<link rel="stylesheet" type="text/css" media="all"
href="{% xstatic 'jquery-ui' 'themes/smoothness/jquery-ui.min.css' %}"/>
<script src="{% xstatic 'jquery' 'jquery.min.js' %}"></script>
<script src="{% xstatic 'jquery-ui' 'jquery-ui.min.js' %}"></script>
<script src="{{ STATIC_URL }}js/gadjo.js"></script>
<script src="{% static "js/gadjo.js" %}"></script>
{% endblock %}
{{ media }}
{% block css %}
<link rel="stylesheet" type="text/css" media="all" href="{{ STATIC_URL }}css/style.css"/>
<link rel="stylesheet" type="text/css" media="all" href="{% static "css/style.css" %}"/>
{% endblock %}
{% block extrascripts %}
{% endblock %}