{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/3"},{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content"}],"enrichment":{"capability":"Parses DATABASE_URL environment variables into Django database configuration dictionaries, supporting PostgreSQL, MySQL, Oracle, SQLite, and other backends with optional connection pooling.","skillfed_tags":["django-integration","environment-config","12factor"],"use_cases":["Containerized deployments where database credentials are injected via environment variables at runtime.","Multi-environment setups (dev, staging, production) using the same code with different DATABASE_URL values.","Enabling connection pooling and health checks in Django without manual DATABASES dictionary construction.","Supporting non-standard or custom database backends by registering them with dj_database_url.register().","Migrating from hardcoded database settings to environment-driven configuration in existing Django projects."],"what_it_does":"dj-database-url is a lightweight utility that converts DATABASE_URL environment variables into Django database configuration dictionaries. It implements the 12factor pattern for backing services, allowing you to externalize database connection details into environment variables rather than hardcoding them in settings.py. The package handles URL parsing for multiple database engines\u2014PostgreSQL, MySQL, Oracle, SQLite, PostGIS, Redshift, CockroachDB, Timescale, and others\u2014and automatically maps them to the correct Django backend.\n\nThe main entry points are config() (reads from DATABASE_URL environment variable with optional fallback) and parse() (accepts a URL string directly). Both return a Django DATABASES dictionary entry. The package also supports Django's connection pooling via conn_max_age and health checks via conn_health_checks, and allows registration of custom database backends with optional post-processing functions for non-standard configuration needs.","worth_installing":"Yes. This is a stable, actively maintained utility with zero known vulnerabilities, low install friction, and broad database backend support. It directly solves the common problem of externalizing database configuration in Django applications and is widely used in containerized and cloud-deployed environments. Install it if you use Django and want to follow 12factor principles for database configuration."},"id":"dj-database-url","links":{"html":"https://skillfed.io/packages/dj-database-url","md":"https://skillfed.io/packages/dj-database-url.md","pypi":"https://pypi.org/project/dj-database-url/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-02-19","license_spdx":"BSD-3-Clause","license_treatment":"permissive","name":"dj-database-url","python_support":"supports_current","summary":"Use Database URLs in your Django Application."},"popularity":{"monthly_downloads":8506063,"position":1617,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.1.2"}
