Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve discoverability of dj-database-url's env option #224

Merged
merged 1 commit into from
May 24, 2024

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented May 24, 2024

In cases where something other than the DATABASE_URL needs to be set, it was previously hard to know how to customise dj-database-url's config, since the upstream docs don't mention the env option:
jazzband/dj-database-url#248

Now our default config passes an explicit value for env (which matches the default value for that argument), to improve discoverability.

In addition, the Heroku Postgres docs link has been updated to deep link to the env vars section, which explains when/why DB env vars will be given alternate colour-prefixed names.

Closes #221.
GUS-W-15844290.

In cases where something other than the `DATABASE_URL` needs
to be set, it was previously hard to know how to customise
`dj-database-url`'s config, since the upstream docs don't mention the
`env` option.

Now our default config passes an explicit value for `env` (which matches
the default value for that argument), to improve discoverability.

In addition, the Heroku Postgres docs link has been updated to deep link
to the env vars section, which explains when/why DB env vars will be given
alternate colour-prefixed names.

Closes #221.
@edmorley edmorley self-assigned this May 24, 2024
@edmorley edmorley requested a review from a team as a code owner May 24, 2024 12:10
@edmorley edmorley merged commit f15864a into main May 24, 2024
1 check passed
@edmorley edmorley deleted the edmorley/dj-database-url-env branch May 24, 2024 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not clear how to reference HEROKU_POSTGRESQL_GREEN_URL and other color db variables.
1 participant