These are chat archives for jcassee/django-analytical

5th
Dec 2017
Navin Bahadur Rana
@nabin98rana
Dec 05 2017 06:42
Not working, I got an error while loading a template tag
TemplateSyntaxError at /en/test/
Invalid block tag on line 8: 'google_analytics', expected 'endblock'. Did you forget to register or load this tag?
I load the tag as well

{% extends 'base.html' %}
{% load analytical %}

{% block content %}
<div class="container">
{% google_analytics %}

</div>

{% endblock content %}

Joost Cassee
@jcassee
Dec 05 2017 08:32
@nabin98rana Strange. The error does suggest that Django has not loaded the google_analytics tag...
Navin Bahadur Rana
@nabin98rana
Dec 05 2017 08:33
Thank you, I resolved the problem
Joost Cassee
@jcassee
Dec 05 2017 08:33
Good to hear! I'm curious, what was the problem?
Navin Bahadur Rana
@nabin98rana
Dec 05 2017 08:33
The problem I was't load {% google_analytics %} in right place
Joost Cassee
@jcassee
Dec 05 2017 08:34
Ah, makes sense. Well, happy programming!