Skip to content
Snippets Groups Projects
Commit 45583024 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

templates/layout: Refine piwik script inclusion check

Piwik script should only be included in production website but checking
the value of the DJANGO_SETTINGS_MODULE variable is not reliable enough
(swh-web in docker uses Django production settings for instance).
parent 237cff07
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
<link rel="search" type="application/opensearchdescription+xml" title="Software Heritage archive of public source code" href="{% static 'xml/swh-opensearch.xml' %}">
<meta name="msapplication-TileImage" content="{% static 'img/icons/swh-logo-archive-270x270.png' %}" />
{% if "production" in DJANGO_SETTINGS_MODULE %}
{% if not swh_web_dev and not swh_web_staging %}
<!-- Matomo -->
<script type="text/javascript">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment