{% extends "blog/base.html" %}
{% load hitcount_tags %}
{% block content %}
{% get_hit_count_js_variables for post as hitcount %}
{% get_hit_count for post as total_hits %}
{{post.title}}
{{ post.content }}
Hitcount Info
Total Hits:
{{ total_hits }}
Ajax URL is:
{{ hitcount.ajax_url }}
The unique PK is:
{{ hitcount.pk }}
Hit counted?
Hit response:
{%endblock%}
{% comment %}
If you do not wish to perform any additional JavaScript actions after POST,
you can use this template tag to insert all the JavaScript you need, as in:
{% insert_hit_count_js for post%}
Or you can use with 'debug' for some output:
{% insert_hit_count_js for post debug %}
The code below is used to update the page view so we can test it with selenium.
{% endcomment %}
{% block inline_javascript %}
{% load static %}
{% get_hit_count_js_variables for post as hitcount %}
{% endblock %}