use static template tag instead of STATIC_URL.
--- a/src/jocondelab/templates/jocondelab/base.html Thu Jan 30 17:04:37 2014 +0100
+++ b/src/jocondelab/templates/jocondelab/base.html Thu Jan 30 17:09:23 2014 +0100
@@ -1,4 +1,5 @@
{% load i18n %}
+{% load static %}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -7,25 +8,25 @@
{% block head %}
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
<meta http-equiv="content-language" content="{{LANGUAGE_CODE}}" />
- <link rel="SHORTCUT ICON" href="{{STATIC_URL}}jocondelab/img/favicon.ico" />
+ <link rel="SHORTCUT ICON" href="{% static 'jocondelab/img/favicon.ico' %}" />
<title>{% block title %}JOCONDELAB-BO{% endblock %}</title>
{% block js_import %}
<script type="text/javascript" src="{% url 'i18n_javascript_catalog' %}"></script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/js/jocondelab.js"></script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/jquery.min.js"></script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/jquery-ui.min.js"></script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/jquery.jstree.js"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/js/jocondelab.js' %}"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/jquery.min.js' %}"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/jquery-ui.min.js' %}"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/jquery.jstree.js' %}"></script>
{% endblock %}
{% block css_import %}
- <link rel="stylesheet" href="{{STATIC_URL}}jocondelab/css/smoothness/jquery-ui-1.10.3.custom.min.css" type="text/css"/>
- <link rel="stylesheet" href="{{STATIC_URL}}jocondelab/css/style.css" type="text/css"/>
+ <link rel="stylesheet" href="{% static 'jocondelab/css/smoothness/jquery-ui-1.10.3.custom.min.css' %}" type="text/css"/>
+ <link rel="stylesheet" href="{% static 'jocondelab/css/style.css' %}" type="text/css"/>
{% endblock %}
{% block css_declaration %}
<style type="text/css">
.rounded {
- behavior:url("{{STATIC_URL}}jocondelab/css/border-radius.htc");
+ behavior:url("{% static 'jocondelab/css/border-radius.htc' %}");
}
</style>
{% endblock %}
@@ -69,8 +70,8 @@
<div id="footer" class="span-24 last">
{% block footer %}
<div class="footer_img">
- <a href="http://www.iri.centrepompidou.fr" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/logo_IRI_footer.png" alt="Logo IRI" /></a>
- <a href="http://www.culturecommunication.gouv.fr" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/logo_mcc_footer.png" alt="Logo Ministère de la Culture et de la Communication" /></a>
+ <a href="http://www.iri.centrepompidou.fr" target="_blank"><img src="{% static 'jocondelab/img/logo_IRI_footer.png' %}" alt="Logo IRI" /></a>
+ <a href="http://www.culturecommunication.gouv.fr" target="_blank"><img src="{% static 'jocondelab/img/logo_mcc_footer.png' %}" alt="Logo Ministère de la Culture et de la Communication" /></a>
</div>
<div style="float: right; text-align: right;" class="small" id="copyright_version">
<div>©2013 <a style="text-decoration: none; color: #4F5155;" href="http://www.iri.centrepompidou.fr" target="_blank">IRI</a></div>
--- a/src/jocondelab/templates/jocondelab/front_base.html Thu Jan 30 17:04:37 2014 +0100
+++ b/src/jocondelab/templates/jocondelab/front_base.html Thu Jan 30 17:09:23 2014 +0100
@@ -1,4 +1,5 @@
{% load i18n %}
+{% load static %}
<!doctype html>
{% get_language_info for LANGUAGE_CODE as current_lang %}
<html lang="{{LANGUAGE_CODE}}"{% if current_lang.bidi %} dir="rtl"{% endif %}>
@@ -6,25 +7,25 @@
{% block head %}
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="SHORTCUT ICON" href="{{STATIC_URL}}jocondelab/img/favicon.ico" />
+ <link rel="SHORTCUT ICON" href="{% static 'jocondelab/img/favicon.ico' %}" />
<title>{% block title %}JocondeLab{% endblock %}</title>
{% block js_import %}
<script type="text/javascript" src="{% url 'i18n_javascript_catalog' %}"></script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/underscore-min.js"></script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/jquery.min.js"></script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/jquery-ui.min.js"></script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/jquery.ui.touch-punch.min.js"></script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/tag-it.min.js"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/underscore-min.js' %}"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/jquery.min.js' %}"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/jquery-ui.min.js' %}"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/jquery.ui.touch-punch.min.js' %}"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/tag-it.min.js' %}"></script>
{% endblock %}
{% block css_import %}
- <link rel="stylesheet" href="{{STATIC_URL}}jocondelab/css/smoothness/jquery-ui-1.10.3.custom.min.css" type="text/css"/>
- <link rel="stylesheet" href="{{STATIC_URL}}jocondelab/lib/jquery.tagit.css" type="text/css"/>
+ <link rel="stylesheet" href="{% static 'jocondelab/css/smoothness/jquery-ui-1.10.3.custom.min.css' %}" type="text/css"/>
+ <link rel="stylesheet" href="{% static 'jocondelab/lib/jquery.tagit.css' %}" type="text/css"/>
{% endblock %}
{% block css_declaration %}
- <link rel="stylesheet" href="{{STATIC_URL}}jocondelab/css/front-common.css" type="text/css"/>
+ <link rel="stylesheet" href="{% static 'jocondelab/css/front-common.css' %}" type="text/css"/>
{% endblock %}
{% block js_declaration %}
@@ -32,10 +33,10 @@
var urls = {
ajax_terms: "{% url 'ajax_terms' %}",
ajax_search: "{% url 'front_search' %}",
- img_if_404: "{{STATIC_URL}}jocondelab/img/default-image.png"
+ img_if_404: "{% static 'jocondelab/img/default-image.png' %}"
};
</script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/js/front-common.js"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/js/front-common.js' %}"></script>
{% endblock %}
{% endblock %}
@@ -136,11 +137,11 @@
</ul>
<p>{% trans 'Ce site vous est proposé par' %}
<a href="http://www.culture.gouv.fr/" title="{% trans "Ministère de la Culture et de la Communication" %}" target="_blank">
- <img src="{{STATIC_URL}}jocondelab/img/logo_mcc_footer.png" alt="{% trans "Logo du Ministère de la Culture et de la Communication" %}" />
+ <img src="{% static 'jocondelab/img/logo_mcc_footer.png' %}" alt="{% trans "Logo du Ministère de la Culture et de la Communication" %}" />
</a>
{% trans 'et' %}
<a href="http://www.iri.centrepompidou.fr/" title="{% trans "Institut de Recherche et d'Innovation" %}" target="_blank">
- <img src="{{STATIC_URL}}jocondelab/img/logo_IRI_footer.png" alt="{% trans "Logo de l'Institut de Recherche et d'Innovation" %}" />
+ <img src="{% static 'jocondelab/img/logo_IRI_footer.png' %}" alt="{% trans "Logo de l'Institut de Recherche et d'Innovation" %}" />
</a>
{% trans 'texte_post_logo_footer' %}
</p>
--- a/src/jocondelab/templates/jocondelab/front_credits.html Thu Jan 30 17:04:37 2014 +0100
+++ b/src/jocondelab/templates/jocondelab/front_credits.html Thu Jan 30 17:09:23 2014 +0100
@@ -1,9 +1,10 @@
{% extends "jocondelab/front_base.html" %}
{% load i18n %}
+{% load static %}
{% block css_declaration %}
{{block.super}}
- <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}jocondelab/css/front-credits.css" />
+ <link rel="stylesheet" type="text/css" href="{% static 'jocondelab/css/front-credits.css' %}" />
{% endblock %}
{% block title %}JocondeLab » {% trans 'Crédits' %}{% endblock %}
--- a/src/jocondelab/templates/jocondelab/front_geo.html Thu Jan 30 17:04:37 2014 +0100
+++ b/src/jocondelab/templates/jocondelab/front_geo.html Thu Jan 30 17:09:23 2014 +0100
@@ -1,35 +1,36 @@
{% extends "jocondelab/front_base.html" %}
{% load i18n %}
+{% load static %}
{% block js_import %}
{{block.super}}
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/leaflet.js"></script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/L.Control.Zoomslider.js"></script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/oms.min.js"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/leaflet.js' %}"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/L.Control.Zoomslider.js' %}"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/oms.min.js' %}"></script>
{% endblock %}
{% block css_import %}
{{block.super}}
- <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}jocondelab/lib/leaflet.css" />
- <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}jocondelab/lib/L.Control.Zoomslider.css" />
+ <link rel="stylesheet" type="text/css" href="{% static 'jocondelab/lib/leaflet.css' %}" />
+ <link rel="stylesheet" type="text/css" href="{% static 'jocondelab/lib/L.Control.Zoomslider.css' %}" />
{% endblock %}
{% block js_declaration %}
{{block.super}}
<script type="text/javascript">
- urls.orange_marker = "{{STATIC_URL}}jocondelab/lib/images/marker-orange.png";
- urls.light_marker = "{{STATIC_URL}}jocondelab/lib/images/marker-light.png";
+ urls.orange_marker = "{% static 'jocondelab/lib/images/marker-orange.png' %}";
+ urls.light_marker = "{% static 'jocondelab/lib/images/marker-light.png' %}";
urls.ajax_geo_coords = "{% url 'ajax_geo_coords' %}";
urls.ajax_geo_search = "{% url 'ajax_geo_search' %}";
- urls.countries_geo_json = "{{STATIC_URL}}jocondelab/lib/countries.geo.json";
+ urls.countries_geo_json = "{% static 'jocondelab/lib/countries.geo.json' %}";
var countries = {{countries|safe}};
</script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/js/front-geo.js"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/js/front-geo.js' %}"></script>
{% endblock %}
{% block css_declaration %}
{{block.super}}
- <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}jocondelab/css/front-geo.css"></script>
+ <link rel="stylesheet" type="text/css" href="{% static 'jocondelab/css/front-geo.css' %}"></script>
{% endblock %}
{% block title %}JocondeLab » {% trans 'Mappemonde' %}{% endblock %}
@@ -46,7 +47,7 @@
<div class="results"></div>
- <div class="loading-please-wait"><img src="{{STATIC_URL}}jocondelab/img/loader.gif" /></div>
+ <div class="loading-please-wait"><img src="{% static 'jocondelab/img/loader.gif' %}" /></div>
<p class="load-more"><a href="#">{% trans 'Afficher plus de résultats' %}</a></p>
{% endblock %}
--- a/src/jocondelab/templates/jocondelab/front_home.html Thu Jan 30 17:04:37 2014 +0100
+++ b/src/jocondelab/templates/jocondelab/front_home.html Thu Jan 30 17:09:23 2014 +0100
@@ -1,14 +1,15 @@
{% extends "jocondelab/front_search.html" %}
{% load i18n %}
+{% load static %}
{% block js_declaration %}
{{block.super}}
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/js/front-home.js"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/js/front-home.js' %}"></script>
{% endblock %}
{% block css_declaration %}
{{block.super}}
- <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}jocondelab/css/front-home.css" />
+ <link rel="stylesheet" type="text/css" href="{% static 'jocondelab/css/front-home.css' %}" />
{% endblock %}
{% block title %}JocondeLab » {% trans 'Accueil' %}{% endblock %}
--- a/src/jocondelab/templates/jocondelab/front_notice.html Thu Jan 30 17:04:37 2014 +0100
+++ b/src/jocondelab/templates/jocondelab/front_notice.html Thu Jan 30 17:09:23 2014 +0100
@@ -1,10 +1,11 @@
{% extends "jocondelab/front_base.html" %}
{% load i18n %}
{% load jlutils %}
+{% load static %}
{% block js_import %}
{{block.super}}
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/jquery.magnific-popup.min.js"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/jquery.magnific-popup.min.js' %}"></script>
{% endblock %}
{% block js_declaration %}
@@ -17,17 +18,17 @@
urls.downvote = "{% url 'ajax_downvote' %}";
urls.wikipedia = {{wikipedia_urls|safe}};
</script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/js/front-notice.js"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/js/front-notice.js' %}"></script>
{% endblock %}
{% block css_import %}
{{block.super}}
- <link rel="stylesheet" href="{{STATIC_URL}}jocondelab/lib/magnific-popup.css" type="text/css" />
+ <link rel="stylesheet" href="{% static 'jocondelab/lib/magnific-popup.css' %}" type="text/css" />
{% endblock %}
{% block css_declaration %}
{{block.super}}
- <link rel="stylesheet" href="{{STATIC_URL}}jocondelab/css/front-notice.css" type="text/css" />
+ <link rel="stylesheet" href="{% static 'jocondelab/css/front-notice.css' %}" type="text/css" />
{% endblock %}
{% block title %}JocondeLab » {% trans "Détail d'une notice" %}{% endblock %}
--- a/src/jocondelab/templates/jocondelab/front_search.html Thu Jan 30 17:04:37 2014 +0100
+++ b/src/jocondelab/templates/jocondelab/front_search.html Thu Jan 30 17:09:23 2014 +0100
@@ -1,5 +1,6 @@
{% extends "jocondelab/front_base.html" %}
{% load i18n %}
+{% load static %}
{% block js_declaration %}
{{block.super}}
@@ -7,7 +8,7 @@
var queryobj = {% if queryobj %}{{queryobj|safe}}{% else %}null{% endif %},
uri_cache = {% if uri_cache %}{{uri_cache|safe}}{% else %}{}{% endif %};
</script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/js/front-search.js"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/js/front-search.js' %}"></script>
{% endblock %}
{% block title %}JocondeLab » {% if searchterms_label %}{% blocktrans %}Résultats pour : « {{searchterms_label}} »{% endblocktrans %}{% else %}{% trans 'Recherche' %}{% endif %}{% endblock %}
@@ -28,7 +29,7 @@
<div class="results">{% include 'jocondelab/partial/wrapped_notice_list.html' %}</div>
- <div class="loading-please-wait"><img src="{{STATIC_URL}}jocondelab/img/loader.gif" alt="{% trans 'Chargement en cours' %}" /></div>
+ <div class="loading-please-wait"><img src="{% static 'jocondelab/img/loader.gif' %}" alt="{% trans 'Chargement en cours' %}" /></div>
<p class="load-more"><a href="#">{% trans 'Afficher plus de résultats' %}</a></p>
{% endblock %}
--- a/src/jocondelab/templates/jocondelab/front_students.html Thu Jan 30 17:04:37 2014 +0100
+++ b/src/jocondelab/templates/jocondelab/front_students.html Thu Jan 30 17:09:23 2014 +0100
@@ -1,9 +1,10 @@
{% extends "jocondelab/front_base.html" %}
{% load i18n %}
+{% load static %}
{% block css_declaration %}
{{block.super}}
- <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}jocondelab/css/front-students.css" />
+ <link rel="stylesheet" type="text/css" href="{% static 'jocondelab/css/front-students.css' %}" />
{% endblock %}
{% block title %}JocondeLab » {% trans "Galerie de créations" %}{% endblock %}
@@ -27,7 +28,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=benaddi_bardon" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/benaddi_bardon.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/benaddi_bardon.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -39,7 +40,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=boyer_bonnot" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/boyer_bonnot.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/boyer_bonnot.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -51,7 +52,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=chan_budain" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/chan_budain.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/chan_budain.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -63,7 +64,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=deprund_cayla" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/deprund_cayla.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/deprund_cayla.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -75,7 +76,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=devoos_locatelli" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/devoos_locatelli.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/devoos_locatelli.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -87,7 +88,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=hebrard_chaumont" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/hebrard_chaumont.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/hebrard_chaumont.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -99,7 +100,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=hetch_marchadier" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/hetch_marchadier.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/hetch_marchadier.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -111,7 +112,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=huz_muckensturm" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/huz_muckensturm.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/huz_muckensturm.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -123,7 +124,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=josseau_pouyet" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/josseau_pouyet.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/josseau_pouyet.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -135,7 +136,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=lefevbre_delcros" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/lefevbre_delcros.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/lefevbre_delcros.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -147,7 +148,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=minga_honingstein" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/minga_honingstein.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/minga_honingstein.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -159,7 +160,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=moreira_rimbert" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/moreira_rimbert.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/moreira_rimbert.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -171,7 +172,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=obe_ryckeghem" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/obe_ryckeghem.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/obe_ryckeghem.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -183,7 +184,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=piquemal_jasmin" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/piquemal_jasmin.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/piquemal_jasmin.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -195,7 +196,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=reucherand_terray" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/reucherand_terray.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/reucherand_terray.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -207,7 +208,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=rouffet_anglade" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/rouffet_anglade.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/rouffet_anglade.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -219,7 +220,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=siestrunck_penrath" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/siestrunck_penrath.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/siestrunck_penrath.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -231,7 +232,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=thome_sonna" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/thome_sonna.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/thome_sonna.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -243,7 +244,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=vimont_tessier" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/vimont_tessier.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/vimont_tessier.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
@@ -255,7 +256,7 @@
<li class="notice-item">
<div class="notice-contents">
<a href="{% url 'front_students_group' %}?g=vittori_thenot" class="update-ids">
- <img class="notice-image" alt="" src="{{STATIC_URL}}jocondelab/students/thumbnails/vittori_thenot.jpg" />
+ <img class="notice-image" alt="" src="{% static 'jocondelab/students/thumbnails/vittori_thenot.jpg' %}" />
</a>
<div class="notice-metadata">
<h2>
--- a/src/jocondelab/templates/jocondelab/front_students_group.html Thu Jan 30 17:04:37 2014 +0100
+++ b/src/jocondelab/templates/jocondelab/front_students_group.html Thu Jan 30 17:09:23 2014 +0100
@@ -1,15 +1,16 @@
{% extends "jocondelab/front_base.html" %}
{% load i18n %}
+{% load static %}
{% block js_import %}
{{block.super}}
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/videojs/video.js"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/videojs/video.js' %}"></script>
{% endblock %}
{% block css_import %}
{{block.super}}
- <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}jocondelab/css/front-students.css" />
- <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}jocondelab/lib/videojs/video-js.min.css" />
+ <link rel="stylesheet" type="text/css" href="{% static 'jocondelab/css/front-students.css' %}" />
+ <link rel="stylesheet" type="text/css" href="{% static 'jocondelab/lib/videojs/video-js.min.css' %}" />
{% endblock %}
{% block title %}JocondeLab » {% trans "Galerie de créations" %}{% endblock %}
@@ -27,7 +28,7 @@
}
$(document).ready(function(){
- videojs.options.flash.swf = "{{STATIC_URL}}jocondelab/lib/videojs/video-js.swf";
+ videojs.options.flash.swf = "{% static 'jocondelab/lib/videojs/video-js.swf' %}";
var group_data =
{
@@ -401,20 +402,20 @@
$("#text").append(d["text"]);
var n = d["images"].length;
for(var i=0;i<n;i++){
- $("#image-list").append('<li><img class="students-img" src="{{STATIC_URL}}jocondelab/students/' + d["images"][i] + '" /></li>');
+ $("#image-list").append('<li><img class="students-img" src="{% static 'jocondelab/students/' %}' + d["images"][i] + '" /></li>');
}
if(d["video"]!=""){
$("#video-container").append(
'<video id="video_1" class="students-img video-js vjs-default-skin vjs-big-play-centered"\
controls preload="auto" height="480" width="854" >\
- <source src="{{STATIC_URL}}jocondelab/students/' + d["video"] + '" type="video/mp4" />\
+ <source src="{% static 'jocondelab/students/' %}' + d["video"] + '" type="video/mp4" />\
</video>');
videojs("video_1");
}
n = d["docs"].length;
if(n>0){
for(i=0;i<n;i++){
- $("#doc-list").append('<li><a class="pdf-link about-text" href="{{STATIC_URL}}jocondelab/students/' + d["docs"][i]["url"] + '">' + d["docs"][i]["label"] + '</a></li>');
+ $("#doc-list").append('<li><a class="pdf-link about-text" href="{% static 'jocondelab/students/' %}' + d["docs"][i]["url"] + '">' + d["docs"][i]["label"] + '</a></li>');
}
}
}
--- a/src/jocondelab/templates/jocondelab/front_termlist.html Thu Jan 30 17:04:37 2014 +0100
+++ b/src/jocondelab/templates/jocondelab/front_termlist.html Thu Jan 30 17:09:23 2014 +0100
@@ -1,14 +1,15 @@
{% extends "jocondelab/front_base.html" %}
{% load i18n %}
+{% load static %}
{% block js_declaration %}
{{block.super}}
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/js/front-termlist.js"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/js/front-termlist.js' %}"></script>
{% endblock %}
{% block css_declaration %}
{{block.super}}
- <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}jocondelab/css/front-termlist.css" />
+ <link rel="stylesheet" type="text/css" href="{% static 'jocondelab/css/front-termlist.css' %}" />
{% endblock %}
{% block title %}JocondeLab » {% trans 'Mots-clés' %}{% endblock %}
@@ -73,7 +74,7 @@
{% endif %}
</div>
- <div class="loading-please-wait"><img src="{{STATIC_URL}}jocondelab/img/loader.gif" /></div>
+ <div class="loading-please-wait"><img src="{% static 'jocondelab/img/loader.gif' %}" /></div>
<script>$(function() { dbpediaBox.bind(".term h3");});</script>
{% endblock %}
--- a/src/jocondelab/templates/jocondelab/front_timeline.html Thu Jan 30 17:04:37 2014 +0100
+++ b/src/jocondelab/templates/jocondelab/front_timeline.html Thu Jan 30 17:09:23 2014 +0100
@@ -1,10 +1,11 @@
{% extends "jocondelab/front_base.html" %}
{% load i18n %}
+{% load static %}
{% block js_import %}
{{block.super}}
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/jquery.mousewheel.js"></script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/hammer.min.js"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/jquery.mousewheel.js' %}"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/hammer.min.js' %}"></script>
{% endblock %}
{% block js_declaration %}
@@ -12,12 +13,12 @@
<script type="text/javascript">
urls.ajax_years = "{% url 'ajax_years' %}";
</script>
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/js/front-timeline.js"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/js/front-timeline.js' %}"></script>
{% endblock %}
{% block css_declaration %}
{{block.super}}
- <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}jocondelab/css/front-timeline.css" />
+ <link rel="stylesheet" type="text/css" href="{% static 'jocondelab/css/front-timeline.css' %}" />
{% endblock %}
{% block title %}JocondeLab » {% trans 'Chronologie' %}{% endblock %}
@@ -60,7 +61,7 @@
<div class="results"></div>
- <div class="loading-please-wait"><img src="{{STATIC_URL}}jocondelab/img/loader.gif" /></div>
+ <div class="loading-please-wait"><img src="{% static 'jocondelab/img/loader.gif' %}" /></div>
<p class="load-more"><a href="#">{% trans 'Afficher plus de résultats' %}</a></p>
{% endblock %}
--- a/src/jocondelab/templates/jocondelab/partial/term_list_table.html Thu Jan 30 17:04:37 2014 +0100
+++ b/src/jocondelab/templates/jocondelab/partial/term_list_table.html Thu Jan 30 17:09:23 2014 +0100
@@ -1,4 +1,5 @@
{% load core_extras %}
+ {% load static %}
<div id="top-pagination">{% include "jocondelab/partial/pagination.html" %}</div>
<div id="term-list-table-div">
<table id="term-list-table">
@@ -13,14 +14,14 @@
<td class="text_centered">{{ term.level }}</td>
<td class="text_centered">
{% if term.wikipedia_url and term.wikipedia_url != "" %}
- <a href="{{term.wikipedia_url}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/arrow_right.png" ></a>
+ <a href="{{term.wikipedia_url}}" target="_blank"><img src="{% static 'jocondelab/img/arrow_right.png' %}" ></a>
{% else %}
- <a href="http://fr.wikipedia.org/w/index.php?search={{term.label}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/wikipedia_search.png" ></a>
+ <a href="http://fr.wikipedia.org/w/index.php?search={{term.label}}" target="_blank"><img src="{% static 'jocondelab/img/wikipedia_search.png' %}" ></a>
{% endif %}
</td>
<td class="text_centered">
{% if term.dbpedia_uri and term.dbpedia_uri != "" %}
- <a href="{{term.dbpedia_uri}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/arrow_green_right.png" ></a>
+ <a href="{{term.dbpedia_uri}}" target="_blank"><img src="{% static 'jocondelab/img/arrow_green_right.png' %}" ></a>
{% else %}
{% endif %}
--- a/src/jocondelab/templates/jocondelab/term_edit.html Thu Jan 30 17:04:37 2014 +0100
+++ b/src/jocondelab/templates/jocondelab/term_edit.html Thu Jan 30 17:09:23 2014 +0100
@@ -1,10 +1,11 @@
{% extends "jocondelab/base.html" %}
{% load i18n %}
{% load core_extras %}
+{% load static %}
{% block js_import %}
{{block.super}}
- <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/underscore-min.js"></script>
+ <script type="text/javascript" src="{% static 'jocondelab/lib/underscore-min.js' %}"></script>
{% endblock %}
{% block js_declaration %}
@@ -12,7 +13,7 @@
<script type="text/javascript">
var global_csrf_token = "{{ csrf_token }}";
- var static_url = "{{STATIC_URL}}";
+ var static_url = "{% static '' %}";
var term_id = {{ term.id }};
var modify_wp_link_url = "{% url 'modify_wp_link' %}";
var remove_wp_link_url = "{% url 'remove_wp_link' %}";
@@ -70,8 +71,8 @@
{% csrf_token %}
</div>
<div id="prev-next">
- {% if prev_id %}<span id="prev-next-prev-link"><a href="{% url 'term' term_id=prev_id %}{% append_to_param page=prev_page %}"><img alt="{% trans 'prev' %}" src="{{STATIC_URL}}jocondelab/img/prev.gif" /></a></span>{% endif %}
- {% if next_id %}<span id="prev-next-next-link"><a href="{% url 'term' term_id=next_id %}{% append_to_param page=next_page %}"><img alt="{% trans 'next' %}" src="{{STATIC_URL}}jocondelab/img/next.gif" /></a></span>{% endif %}
+ {% if prev_id %}<span id="prev-next-prev-link"><a href="{% url 'term' term_id=prev_id %}{% append_to_param page=prev_page %}"><img alt="{% trans 'prev' %}" src="{% static 'jocondelab/img/prev.gif' %}" /></a></span>{% endif %}
+ {% if next_id %}<span id="prev-next-next-link"><a href="{% url 'term' term_id=next_id %}{% append_to_param page=next_page %}"><img alt="{% trans 'next' %}" src="{% static 'jocondelab/img/next.gif' %}" /></a></span>{% endif %}
<span id="prev-next-clear"/>
</div>
@@ -111,9 +112,9 @@
<td>
<span>
{% if term.wikipedia_url and term.wikipedia_url != "" %}
- <a href="{{term.wikipedia_url}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/arrow_right.png" > {{term.wp_label}}</a>
+ <a href="{{term.wikipedia_url}}" target="_blank"><img src="{% static 'jocondelab/img/arrow_right.png' %}" > {{term.wp_label}}</a>
{% else %}
- <a href="http://fr.wikipedia.org/w/index.php?search={{term.label}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/wikipedia_search.png" ></a>
+ <a href="http://fr.wikipedia.org/w/index.php?search={{term.label}}" target="_blank"><img src="{% static 'jocondelab/img/wikipedia_search.png' %}" ></a>
{% endif %}
</span>
{% if not term.wikipedia_url or term.url_status == 2 %}
@@ -123,14 +124,14 @@
{% endif %}
<span>
{% if term.wikipedia_revision_id %}
- <a href="{{term.wikipedia_revision_permalink}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/clock_arrow.png" ></a>
+ <a href="{{term.wikipedia_revision_permalink}}" target="_blank"><img src="{% static 'jocondelab/img/clock_arrow.png' %}" ></a>
{% else %}
{% endif %}
</span>
<span>
{% if term.dbpedia_uri and term.dbpedia_uri != "" %}
- <a href="{{term.dbpedia_uri}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/arrow_green_right.png" ></a>
+ <a href="{{term.dbpedia_uri}}" target="_blank"><img src="{% static 'jocondelab/img/arrow_green_right.png' %}" ></a>
{% else %}
{% endif %}
@@ -160,9 +161,9 @@
<span>
{% if term.url_status != 4 %}
{% if term.validated %}
- <img src="{{STATIC_URL}}jocondelab/img/red_cross_disabled.png" class="remove_wp_link_disabled" id="{{term.id}}" alt="{{term.label}}" />
+ <img src="{% static 'jocondelab/img/red_cross_disabled.png' %}" class="remove_wp_link_disabled" id="{{term.id}}" alt="{{term.label}}" />
{% else %}
- <img src="{{STATIC_URL}}jocondelab/img/red_cross.png" class="remove_wp_link" id="{{term.id}}" alt="{{term.label}}" />
+ <img src="{% static 'jocondelab/img/red_cross.png' %}" class="remove_wp_link" id="{{term.id}}" alt="{{term.label}}" />
{% endif %}
{% else %}
--- a/src/jocondelab/templates/jocondelab/term_list.html Thu Jan 30 17:04:37 2014 +0100
+++ b/src/jocondelab/templates/jocondelab/term_list.html Thu Jan 30 17:09:23 2014 +0100
@@ -1,6 +1,7 @@
{% extends "jocondelab/base.html" %}
{% load core_extras %}
{% load i18n %}
+{% load static %}
{% block js_declaration %}
{{block.super}}
@@ -27,14 +28,14 @@
<td class="text_centered">{{ term.level }}</td>
<td class="text_centered">
{% if term.wikipedia_url and term.wikipedia_url != "" %}
- <a href="{{term.wikipedia_url}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/arrow_right.png" ></a>
+ <a href="{{term.wikipedia_url}}" target="_blank"><img src="{% static 'jocondelab/img/arrow_right.png' %}" ></a>
{% else %}
- <a href="http://fr.wikipedia.org/w/index.php?search={{term.label}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/wikipedia_search.png" ></a>
+ <a href="http://fr.wikipedia.org/w/index.php?search={{term.label}}" target="_blank"><img src="{% static 'jocondelab/img/wikipedia_search.png' %}" ></a>
{% endif %}
</td>
<td class="text_centered">
{% if term.dbpedia_uri and term.dbpedia_uri != "" %}
- <a href="{{term.dbpedia_uri}}" target="_blank"><img src="{{STATIC_URL}}jocondelab/img/arrow_green_right.png" ></a>
+ <a href="{{term.dbpedia_uri}}" target="_blank"><img src="{% static 'jocondelab/img/arrow_green_right.png' %}" ></a>
{% else %}
{% endif %}