{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/7"}],"enrichment":{"capability":"Customize Django form field HTML and CSS in templates using template tags and filters, without modifying Python form definitions.","skillfed_tags":["django-forms","template-filters"],"use_cases":["Add CSS classes to form fields for styling without touching Python form code.","Set HTML5 data attributes on fields for unobtrusive JavaScript hooks.","Apply error or required-field styling conditionally based on validation state.","Convert input types to HTML5 variants (e.g., text to search) in templates.","Build reusable field templates with overridable default attributes."],"what_it_does":"django-widget-tweaks is a template library that lets designers and front-end developers customize how Django form fields render in HTML without writing Python code. It provides template tags and filters to add or modify CSS classes, HTML attributes, and data attributes on form fields directly in templates.\n\nThe package offers two main interfaces: a `render_field` tag with HTML-like syntax for straightforward customization, and a set of filters (`add_class`, `attr`, `set_data`, `add_error_class`, etc.) for more granular control. It handles single and multi-widget fields, supports filter chaining with leftmost-wins semantics for reusable templates, and integrates cleanly with Django's form rendering pipeline.","worth_installing":"Yes. It is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and solves a real workflow problem\u2014separating form presentation from Python logic. Install if your Django project has designers or front-end developers who need to customize form rendering without Python changes."},"id":"django-widget-tweaks","links":{"html":"https://skillfed.io/packages/django-widget-tweaks","md":"https://skillfed.io/packages/django-widget-tweaks.md","pypi":"https://pypi.org/project/django-widget-tweaks/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-01-02","license_spdx":null,"license_treatment":"permissive","name":"django-widget-tweaks","python_support":"supports_current","summary":"Tweak the form field rendering in templates, not in python-level form definitions."},"popularity":{"monthly_downloads":1559231,"position":3763,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.5.1"}
