django-page-tours
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.
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:
- Lean on Driver.js for anything it already does, rather than reimplementing it.
- A tour that fails must leave the page exactly as usable as it was without one.
- 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.")])
The documentation covers function-based views, steps attached to elements, what a visitor sees, and translation.
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.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_page_tours-0.1.0.tar.gz | 20.8 kB | With provenance | Details for django_page_tours-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_page_tours-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for django_page_tours-0.1.0-py3-none-any.whl |
Total release size: 43.4 kB
Release files / django_page_tours-0.1.0.tar.gz
| Download URL | django_page_tours-0.1.0.tar.gz |
|---|---|
| Size | 20.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fe4364039a0ef460e9e1d9b141b80dfb228f3aadd040d4dbd743f9ef6db10bf
|
|
BLAKE2b-256 checksum How to use checksums |
0f1c8a67e46ba580a495e50541d9b7ab698e0d7abc0b0497318e1d262f4f04a5
|
| 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 logRelease files / django_page_tours-0.1.0-py3-none-any.whl
| Download URL | django_page_tours-0.1.0-py3-none-any.whl |
|---|---|
| Size | 22.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
18c2c86f599f17703043a806a1a7d764569df453a74c810c7a25b0fc7b226d59
|
|
BLAKE2b-256 checksum How to use checksums |
f1cf5699ea9068b169633892b7dc3b3849b638722b8b44e5858108075543d60f
|
| 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 logSecurity for django-page-tours 0.1.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.
Attestation for django_page_tours-0.1.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 logA 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.