# jazzband/dj-database-url

Use Database URLs in your Django Application.

Repository: https://github.com/jazzband/dj-database-url
Canonical: https://ross.abutalabs.com/products/dj-database-url
Homepage: https://pypi.org/project/dj-database-url/
Language: Python
License: BSD-3-Clause
License Family: permissive
Last push: 2026-08-25T11:35:48+00:00

## Health v2 (maintenance only)
Score: 85/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 59, longevity 100
- inputs: {"age_days": 5238, "days_push": 8, "days_rel": 195, "gap_med": 43, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1572, forks 216 (observed 2026-08-28T04:05:05.579764+00:00)

## What it is
A small Django utility that parses DATABASE_URL environment variables into Django database connection dictionaries. It supports 12factor-style configuration and optional connection pooling via conn_max_age.

## Use cases
- configure django database from environment variable
- parse postgres database url in settings.py
- use 12factor config for django databases
- enable django connection pooling via url config
- swap database backends without editing settings
- provide default database url for local development

## When to choose
- you deploy Django with environment-based configuration
- you want a single DATABASE_URL across staging and production
- you need quick connection pooling setup in Django

## When to avoid
- you are not using Django
- you prefer explicit DATABASES dicts without env vars

## Facets
- artifact type: library
- maturity: stable
- function: database, configuration-management, developer-tools
- domain: databases, web-development, developer-tools
- platform: python
- tags: django, database-url, 12factor, settings-configuration, web-server

## Member repositories
- jazzband/dj-database-url (main) score 85

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:05.579764+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:58:11.269389+00:00, confidence not recorded.
  - readme: https://github.com/jazzband/dj-database-url (fetched 2026-08-28T04:05:05.579764+00:00, sha e853b38e2a38)
  - homepage: https://pypi.org/project/dj-database-url/ (fetched 2026-08-29T11:28:31.575239+00:00, sha 4b4e8fead74a)
  - registry_pypi: https://pypi.org/pypi/dj-database-url/json (fetched 2026-08-29T11:28:31.584382+00:00, sha 973bdd77ff9a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
