Install Piqo on Django

Add the snippet to your base template so every page inherits it.

  1. Open your base template — typically templates/base.html.
  2. Paste the snippet inside the <head> (or your extra_head block).
  3. Restart the server and reload the page.
{# templates/base.html #}
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>{% block title %}My site{% endblock %}</title>
  <script defer data-site="YOUR_SITE_ID" src="https://piqo.app/piqo.js"></script>
  {% block extra_head %}{% endblock %}
</head>
<body>
  {% block content %}{% endblock %}
</body>
</html>