{"id":23561,"library":"django-bootstrap-v5","title":"django-bootstrap-v5","description":"Django template tags and filters for Bootstrap 5 integration. Version 1.0.11, released Mar 2023. Low maintenance cadence; supports Bootstrap 5.0–5.3.","status":"active","version":"1.0.11","language":"python","source_language":"en","source_url":"https://github.com/zelenij/django-bootstrap-v5","tags":["django","bootstrap5","forms","templatetags","django-bootstrap5"],"install":[{"cmd":"pip install django-bootstrap-v5","lang":"bash","label":"latest PyPI"},{"cmd":"pip install django-bootstrap-v5==1.0.11","lang":"bash","label":"pinned version"}],"dependencies":[{"reason":"Core dependency; tested with Django 2.2–4.2","package":"Django","optional":false},{"reason":"Bootstrap 5 CSS/JS (not a Python package; manual inclusion required)","package":"bootstrap5","optional":true}],"imports":[{"wrong":"from django_bootstrap5.templatetags import bootstrap5","symbol":"PACKAGE_NAME","correct":"from bootstrap5 import PACKAGE_NAME"},{"symbol":"metadata","correct":"from bootstrap5 import metadata"},{"symbol":"package_metadata","correct":"from bootstrap5 import package_metadata"}],"quickstart":{"code":"# settings.py\nINSTALLED_APPS = [\n    ...\n    'django_bootstrap5',\n]\n\n# template.html\n{% load django_bootstrap5 %}\n<form action=\".\" method=\"post\">\n  {% csrf_token %}\n  {% bootstrap_form form %}\n  {% bootstrap_button button_type=\"submit\" content=\"Submit\" %}\n</form>","lang":"python","description":"Add 'django_bootstrap5' to INSTALLED_APPS, then use template tags to render Bootstrap 5 forms and buttons."},"warnings":[{"fix":"Replace {% load bootstrap5 %} with {% load django_bootstrap5 %} in all templates.","message":"Template tag library name changed from 'bootstrap5' to 'django_bootstrap5' in v1.0.0. Old {% load bootstrap5 %} will raise TemplateSyntaxError.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Use the 'required' and 'disabled' arguments in form field configuration or Bootstrap form rendering.","message":"The 'set_required' and 'set_disabled' filters are deprecated and will be removed in v2.0.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Add Bootstrap 5 CSS/JS via CDN or static files in your base HTML (e.g., <link href=\"https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css\" rel=\"stylesheet\">).","message":"Bootstrap 5 CSS/JS must be included manually in your base template; this library only provides Django template tags, not the frontend assets.","severity":"gotcha","affected_versions":"all"},{"fix":"Ensure SECRET_KEY is set in settings.py.","message":"If Django's SECRET_KEY is not set, the bootstrap5 templatetags may raise a RuntimeError during startup.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.0.11':15 '2023':18 '5':12 '5.0':24 '5.3':25 'bootstrap':3,11,23 'bootstrap5':27,32 'cadenc':21 'django':2,5,26,31 'django-bootstrap-v5':1 'django-bootstrap5':30 'filter':9 'form':28 'integr':13 'low':19 'mainten':20 'mar':17 'releas':16 'support':22 'tag':7 'templat':6 'templatetag':29 'v5':4 'version':14","created_at":"2026-05-01T08:08:25.326328+00:00","updated_at":"2026-05-01T08:08:25.326328+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.0.11","cli_name":"","cli_version":null,"type":"library","homepage":"https://django-bootstrap-v5.readthedocs.io","github":"https://github.com/zelenij/django-bootstrap-v5","docs":"https://django-bootstrap-v5.readthedocs.io/","changelog":null,"pypi":"https://pypi.org/project/django-bootstrap-v5/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework","serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}