Skip to main content

django-page-tours

Tests Build Docs Publish Coverage PyPI Development status Python Django Ruff Licence

Guided tours of a page for Django sites, shown with Driver.js.

A new visitor to an application often can't tell what a page is for or where its important controls are. A short tour fixes that: a few steps, each pointing at one part of the page with a sentence about it. Building one by hand means wiring a JavaScript library into templates, writing the steps in JavaScript far from the view they describe, and remembering who has already seen it. django-page-tours moves the steps into Python, next to the page, and handles the rest.

Status: pre-release. A tour can be declared for a page and plays when the page opens. Visitors can step through it or close it, and a tour that fails leaves the page usable. Nothing is published to PyPI until the first usable version.

Scope & philosophy

What it is. A tour belongs to one page. A developer declares its steps in Python, each one pointing at an element on the page with a title and a short text. The first time someone opens the page, the tour plays. They can step through it, skip it or close it, and once they have seen it, their browser remembers and it does not play again unless they ask for it. When the tour changes enough to matter, the developer gives it a new version, and people who saw the old one see the new one once.

What it deliberately is not.

  • Not a design. The package ships Driver.js's own styling and nothing more. A site gives the tour its look with its own CSS.
  • Not a store of progress per account. Whether someone has seen a tour is kept in their browser. The package adds no database tables.
  • Not tours across several pages, and not a getting-started checklist.
  • Not dependent on a CDN. Driver.js ships inside the package, so a tour works on a site with a strict content security policy or no outside network access.

When a choice is close:

  1. Lean on Driver.js for anything it already does, rather than reimplementing it.
  2. A tour that fails must leave the page exactly as usable as it was without one.
  3. Fewer settings beat more. Each one has to earn its place.

Quickstart

Add page_tours to INSTALLED_APPS, load the tag once in the <head> of your base template, and declare a tour on a view:

{% load page_tours %}
{% page_tour %}
from django.views.generic import TemplateView

from page_tours import Tour, TourStep


class DashboardView(TemplateView):
    template_name = "dashboard.html"
    tour = Tour(steps=[TourStep(title="Welcome", text="A quick look around.")])

A project can replace the tour of an installed app, or turn it off, from its own settings with PAGE_TOURS_OVERRIDES, without editing the app.

The documentation covers function-based views, steps attached to elements, what a visitor sees, and translation.

Styling

Every part of a shown tour step has a documented class name: page-tour-box, page-tour-title, page-tour-text, page-tour-progress, page-tour-previous, page-tour-next, page-tour-done, page-tour-close and page-tour-highlight. Style them from your own stylesheet, or give parts classes of your own with the PAGE_TOURS_CLASSES setting. A design system installed as an app can supply classes for the parts as defaults with AppConfig.page_tour_classes, and the project's setting replaces them part by part. Django's check command reports a wrong entry with page_tours.W003 or page_tours.W004. The styling page has the details.

Requirements

  • Python 3.12 or 3.13
  • Django 5.2, 6.0 or 6.1

Prior art

Package Why it isn't this
django-tour No release since 2015
django-driverjs No release since 2022, no licence
django-tours Built on Shepherd.js, which is AGPL-licensed. Loads its script from a CDN and keeps tours in the database

Licence

MIT. Driver.js is also MIT-licensed.

Metadata

Release files for django-page-tours 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-page-tours 0.2.0
File Size Uploaded Provenance Actions
django_page_tours-0.2.0.tar.gz 25.3 kB With provenance Details for django_page_tours-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-page-tours 0.2.0
File Interpreter ABI Platform Actions
django_page_tours-0.2.0-py3-none-any.whl Python 3 none any Details for django_page_tours-0.2.0-py3-none-any.whl

Total release size: 53.7 kB

Release files / django_page_tours-0.2.0.tar.gz

Download URL django_page_tours-0.2.0.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c840e13a51677e7389b1f62a4133583889bee88c66d1b2ed68cc760eaeee966e
BLAKE2b-256 checksum
How to use checksums
a1818cd3446b0837ca446991b27607e30b204fe9d60ec1aab350f1f00aaad745
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / django_page_tours-0.2.0-py3-none-any.whl

Download URL django_page_tours-0.2.0-py3-none-any.whl
Size 28.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
665f9c5ec7fc0749473625a11b1583de6751587f313d22c15e784d1a93b32a62
BLAKE2b-256 checksum
How to use checksums
529ced0a73455cc64b409aea7b5380d43c3b876a6e309282f63b34fe1d750ed2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for django-page-tours 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_page_tours-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page