Skip to main content

Django Bookmark

A Django app that lets users create bookmarks to Django model instances

Installation

Install django-bookmark using your favourite package manager.

Add django_bookmark to your Django projects INSTALLED_APPS:

...
'django_bookmark',
...

Include django_bookmark.urls in your URL dispatcher:

...
path("", include("django_bookmark.urls")),
...

Django Bookmarks adds two routes below where you include the app:

  • /bookmarks/ is a view that lists all bookmarks of the user accessing it
  • /togglebookmark/<content_type_id>/<object_id> is a view to add or remove a bookmark, that points to the model instance specified by the content_type_id and the object_id. The bookmark will be saved with the user id of the user accessing the view.

Django Bookmarks ships the django_bookmark templatetags library, which currently consists of the templatetag toggle_bookmark. The toggle_bookmark templatetag takes the model instance as argument and adds a bookmark link that to your template. This bookmark link displayes a bookmark symbol that is either white, if the model instance is not bookmarked or yellow, if the model instance is bookmarked. Clicking the link toggles the bookmarking state of the model instance for the logged in user. If you have htmx included in your web application, the bookmarking link uses htmx to update the bookmark symbol, otherwise the link redirects to the page where you came from.

Django Bookmarks uses the Bookmark Add svg from the Material Symbols collection and the Bookmark svg from the Material Icons collection. Both are licensed under the SIL Open Font License.

Metadata

Release files for django-bookmark 0.1.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-bookmark 0.1.0
File Size Uploaded Provenance Actions
django_bookmark-0.1.0.tar.gz 4.6 kB Without provenance Details for django_bookmark-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-bookmark 0.1.0
File Interpreter ABI Platform Actions
django_bookmark-0.1.0-py3-none-any.whl Python 3 none any Details for django_bookmark-0.1.0-py3-none-any.whl

Total release size: 11.6 kB

Release files / django_bookmark-0.1.0.tar.gz

Download URL django_bookmark-0.1.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
689959134f7d9ddc408c66564e8b3b188c242276f82cc2384bb50a4e670829b7
BLAKE2b-256 checksum
How to use checksums
a27f4e60352800948c0489921074e249ca4129dd2efe2167f6b831d2df040bf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / django_bookmark-0.1.0-py3-none-any.whl

Download URL django_bookmark-0.1.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f761187f53d48bd7ac5f27775f092d48a27d0573df4d462254c08274be34da0c
BLAKE2b-256 checksum
How to use checksums
14b19a2b222728a4e10242d621ccf26f4c5e513157e64a6bf6d907704dec52af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for django-bookmark 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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