Skip to main content

django-buttons

This application provides some simple template tags to insert buttons into templates.

Installation

Install application with pypi:

$ pip install django-buttons[fa5]  # Installs django-fontawesome5
$ pip install django-buttons[fa6]  # Installs django-fontawesome6

Add application to your INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    'buttons',
    ...
]

BUTTONS_FONTAWESOME_VERSION = 4  # Use 5 to use fontawesome-5 as icon library

Use buttons in your templates

 {% load buttons_tags %}
...
{% btn_home %}

Buttons can have some parameters :

  • url: target url
  • title: displayed text
  • icon: fa aware name, ie. 'home' for fa-home
  • icon_position: Position of the icon, 'right', 'left' or 'none' (no icon displayed) ...

Enjoy !

Metadata

Release files for django-buttons 1.0.4

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-buttons 1.0.4
File Size Uploaded
django_buttons-1.0.4.tar.gz 20.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-buttons 1.0.4
File Interpreter ABI Platform
django_buttons-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 41.5 kB

Release files / django_buttons-1.0.4.tar.gz

Download URL django_buttons-1.0.4.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6b37729f223bbaccb445343abf05edd973c0fa27bed754d7c4488668997a9587
BLAKE2b-256 checksum
How to use checksums
705bf628598112ca14ab7304bfe0814bc0b00da3bcaa3f0498eee7917cc31239
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / django_buttons-1.0.4-py3-none-any.whl

Download URL django_buttons-1.0.4-py3-none-any.whl
Size 20.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1896d5b26b1b3f96abff919d29a3cf7f60ec99cfc78fbc1dcebff6e7241f521d
BLAKE2b-256 checksum
How to use checksums
80ba8e894dd1994c610723dc7f5ef3ce6c990f40835d9653d1014625185c3416
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
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