{"id":13415599,"url":"https://github.com/danieljdufour/djenv","last_synced_at":"2026-03-13T08:34:55.536Z","repository":{"id":57422781,"uuid":"273827552","full_name":"DanielJDufour/djenv","owner":"DanielJDufour","description":":sparkles: Load Django Settings from Environmental Variables with One Magical Line of Code","archived":false,"fork":false,"pushed_at":"2023-10-29T12:57:46.000Z","size":22,"stargazers_count":28,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-22T15:33:52.576Z","etag":null,"topics":["django","django-settings","docker","env","environment","environment-variables","python","python3","settings"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DanielJDufour.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-06-21T03:32:38.000Z","updated_at":"2023-06-03T07:19:38.000Z","dependencies_parsed_at":"2022-08-27T05:25:36.114Z","dependency_job_id":"633ed85c-e2d6-408d-a834-5c222eb6e014","html_url":"https://github.com/DanielJDufour/djenv","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"e5e791a38f6c8a8529940f2a195099b3ed6bfd02"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Fdjenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Fdjenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Fdjenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DanielJDufour%2Fdjenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DanielJDufour","download_url":"https://codeload.github.com/DanielJDufour/djenv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247653397,"owners_count":20973823,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","django-settings","docker","env","environment","environment-variables","python","python3","settings"],"created_at":"2024-07-30T21:00:50.622Z","updated_at":"2026-03-13T08:34:55.482Z","avatar_url":"https://github.com/DanielJDufour.png","language":"Python","readme":"# DjEnv: Django + Environment\nLoad Django Settings Directly from Environmental Variables\n\n# features\n- modify django configuration without modifying source code\n- prevent hard-coding of Django settings\n- works great with Docker\n\n# install\n### with pip\n```bash\npip install djenv\n```\n### with pipenv\n```bash\npipenv install djenv\n```\n\n# basic usage\n```python3\n# inside settings.py\n\n# import settings from environment\nfrom djenv.settings import *\n```\n\nPrepend Settings with `DJANGO_` to import them.  For example:\n```bash\nDJANGO_DEBUG=False python3 manage.py runserver\n```\nWill set DEBUG=False in the settings.py\n\n# advanced usage\nYou can also replace nested settings like DATABASES by setting a JSON\n```bash\nDJANGO_DATABASES='{ \"default\": { \"ENGINE\": \"django.db.backends.sqlite3\", \"NAME\": \"db.sqlite3\" } }'  python3 manage.py runserver\n```\n","funding_links":[],"categories":["Third-Party Packages"],"sub_categories":["Configuration"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljdufour%2Fdjenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanieljdufour%2Fdjenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanieljdufour%2Fdjenv/lists"}