Use django-statici18n in production

This commit is contained in:
Raphael Michel
2016-11-09 19:08:51 +01:00
parent 67951f8984
commit 45b960b97c
7 changed files with 23 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
{% load staticfiles %}
{% load i18n %}
{% load safelink %}
{% load statici18n %}
<!DOCTYPE html>
<html>
<head>
@@ -50,7 +51,12 @@
{% trans "If this takes longer than a few minutes, please contact us." %}
</p>
</div>
<script type="text/javascript" src="{% url 'javascript-catalog' lang=request.LANGUAGE_CODE %}" async></script>
{% if DEBUG %}
<script type="text/javascript" src="{% url 'javascript-catalog' lang=request.LANGUAGE_CODE %}" async></script>
{% else %}
<script src="{% statici18n LANGUAGE_CODE %}" async></script>
{% endif %}
{% compress js %}
<script type="text/javascript" src="{% static "jquery/js/jquery-2.1.1.min.js" %}" async></script>
<script type="text/javascript" src="{% static "moment/moment-with-locales.js" %}" async></script>