{"id":21084144,"url":"https://github.com/unplugstudio/django-alttext","last_synced_at":"2025-03-14T05:11:23.575Z","repository":{"id":57418901,"uuid":"195109536","full_name":"unplugstudio/django-alttext","owner":"unplugstudio","description":"Alt text for files in Django","archived":false,"fork":false,"pushed_at":"2023-02-24T22:22:33.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-20T07:48:24.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unplugstudio.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-03T18:41:48.000Z","updated_at":"2022-01-26T19:59:08.000Z","dependencies_parsed_at":"2022-09-13T14:01:41.376Z","dependency_job_id":null,"html_url":"https://github.com/unplugstudio/django-alttext","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugstudio%2Fdjango-alttext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugstudio%2Fdjango-alttext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugstudio%2Fdjango-alttext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unplugstudio%2Fdjango-alttext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unplugstudio","download_url":"https://codeload.github.com/unplugstudio/django-alttext/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243526953,"owners_count":20305115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T20:22:39.142Z","updated_at":"2025-03-14T05:11:23.547Z","avatar_url":"https://github.com/unplugstudio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nDjango Alt Text\n===============\n\nGeneric alt text model associated to files by their path.\n\nInstall\n-------\n\n1. Install via pip: ``pip install django-alttext``.\n2. Add ``alttext`` to your ``INSTALLED_APPS``.\n3. Run migrations.\n4. Optionally follow the integration instructions that apply to your case.\n\nUsage\n-----\n\nUsing 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.\n\nIn your templates, you can now access the alt text for any file using the ``alttext`` filter:\n\n.. code::\n\n  {% load alttext_tags %}\n  \u003cimg src=\"{{ mymodel.imagefield }}\" alt=\"{{ mymodel.imagefield|alttext }}\" \u003e\n\nMezzanine integration\n---------------------\n\nIf 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.\n\nConfiguration\n-------------\n\n- Enable the admin list view to manage all AltText instances: ``settings.ALTTEXT_ADMIN_DISPLAY = True``.\n\nContributing\n------------\n\nReview contribution guidelines at CONTRIBUTING.md_.\n\n.. _CONTRIBUTING.md: CONTRIBUTING.md\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funplugstudio%2Fdjango-alttext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funplugstudio%2Fdjango-alttext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funplugstudio%2Fdjango-alttext/lists"}