Skip to main content

An application providing some template-tags to add buttons on pages

Project description

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 !

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_buttons-1.0.4.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_buttons-1.0.4-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file django_buttons-1.0.4.tar.gz.

File metadata

  • Download URL: django_buttons-1.0.4.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for django_buttons-1.0.4.tar.gz
Algorithm Hash digest
SHA256 6b37729f223bbaccb445343abf05edd973c0fa27bed754d7c4488668997a9587
MD5 3403e1dccaf8838488d0ac11f28d0e8f
BLAKE2b-256 705bf628598112ca14ab7304bfe0814bc0b00da3bcaa3f0498eee7917cc31239

See more details on using hashes here.

File details

Details for the file django_buttons-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: django_buttons-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for django_buttons-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1896d5b26b1b3f96abff919d29a3cf7f60ec99cfc78fbc1dcebff6e7241f521d
MD5 f3098b00100e311a714cb2944ac5082c
BLAKE2b-256 80ba8e894dd1994c610723dc7f5ef3ce6c990f40835d9653d1014625185c3416

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page