# brack3t/django-braces

Reusable, generic mixins for Django

Repository: https://github.com/brack3t/django-braces
Canonical: https://ross.abutalabs.com/products/django-braces
Homepage: http://django-braces.readthedocs.org/en/latest/index.html
Language: Python
License: BSD-3-Clause
License Family: permissive
Topics: django, python, django-braces, class-based, views, cbvs, cbv
Last push: 2025-03-18T02:03:38+00:00

## Health v2 (maintenance only)
Score: 35/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 11, release rhythm 28, longevity 100
- inputs: {"age_days": 5297, "days_push": 534, "days_rel": 534, "gap_med": 87, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2019, forks 217 (observed 2026-08-28T04:06:06.249434+00:00)

## What it is
A collection of reusable, generic mixins for Django's class-based views, replicating function-based view decorator behavior and solving common CBV pain points. It is stable and time-tested but no longer in active development, supporting only Python versions and Django LTS releases still receiving fixes.

## Use cases
- add login or permission requirements to Django class-based views
- replicate function-based view decorators on class-based views
- handle AJAX and JSON responses in Django CBVs
- control form handling and success redirects in class-based views
- solve common headaches when working with Django CBVs

## When to choose
- you use Django class-based views and want decorator-like behavior as mixins
- you need battle-tested, stable mixins with minimal maintenance risk
- you are on a supported Django LTS version and want drop-in CBV helpers

## When to avoid
- you need a library under active development with frequent updates
- you prefer writing your own mixins or using Django's built-in LoginRequired/PermissionRequiredMixin
- you run unsupported Python or non-LTS Django versions outside the officially supported range

## Facets
- artifact type: library
- maturity: maintenance
- function: web-framework, middleware, auth, form-handling, developer-tools
- domain: web-development, backend, developer-tools
- platform: python
- tags: django, class-based-views, cbv, mixins, reusable-components, view-decorators, forms, web-server

## Member repositories
- brack3t/django-braces (main) score 35

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:06.249434+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:00:26.466636+00:00, confidence not recorded.
  - readme: https://github.com/brack3t/django-braces (fetched 2026-08-28T04:06:06.249434+00:00, sha 9af192b5d8b6)
  - registry_pypi: https://pypi.org/pypi/django-braces/json (fetched 2026-08-29T10:40:51.092675+00:00, sha 71116ddb746c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
