Django Alt Text
Generic alt text model associated to files by their path.
Install
Install via pip: pip install django-alttext.
Add alttext to your INSTALLED_APPS.
Run migrations.
Optionally follow the integration instructions that apply to your case.
Usage
Using one of the supported integrations staff users will be able to add alt text for images in the admin interface. The app stores a list of alt texts by their associated image path.
In your templates, you can now access the alt text for any file using the alttext filter:
{% load alttext_tags %}
<img src="{{ mymodel.imagefield }}" alt="{{ mymodel.imagefield|alttext }}" >
Mezzanine integration
If you’re using Mezzanine and filebrowser-safe, add alttext.mezzanine to your INSTALLED_APPS before mezzanine.boot to enable alt-text links in the admin. A link to “Edit alt text” will appear next to each FileField in Add and Change forms.
Configuration
Enable the admin list view to manage all AltText instances: settings.ALTTEXT_ADMIN_DISPLAY = True.
Contributing
Review contribution guidelines at CONTRIBUTING.md.
Metadata
Release files for django-alttext 1.1.2
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-alttext-1.1.2.tar.gz | 7.5 kB | Without provenance | Details for django-alttext-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_alttext-1.1.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for django_alttext-1.1.2-py2.py3-none-any.whl |
Total release size: 15.8 kB
Release files / django-alttext-1.1.2.tar.gz
| Download URL | django-alttext-1.1.2.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
35a5149afe53ba3e20d1ef5dd71fb4d6153fff6824243e4cadc4ea5f640aec95
|
|
BLAKE2b-256 checksum How to use checksums |
cc03a42cae4cfeab90d17630d5d6ba3742b7e69d10097e15336ae157c702f637
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / django_alttext-1.1.2-py2.py3-none-any.whl
| Download URL | django_alttext-1.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8edde7b7b2e42b6a3c232480d084395f6b2a7e5da97a50f51d6b175d27fb4e4f
|
|
BLAKE2b-256 checksum How to use checksums |
2625b33f083e5eb2ad975c335837c9688fe1ef54d106b8c1bcc42ae1bbc7ecc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for django-alttext 1.1.2
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.