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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_buttons-1.0.4.tar.gz | 20.7 kB | Without provenance | Details for django_buttons-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_buttons-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for django_buttons-1.0.4-py3-none-any.whl |
Total release size: 41.5 kB
Security for django-buttons 1.0.4
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.