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

Accept database parameters as Service Binding or URI instead of separate environment variables #596

Open
jennydaman opened this issue Nov 22, 2024 · 1 comment
Labels

Comments

@jennydaman
Copy link
Contributor

# DATABASE CONFIGURATION
# ------------------------------------------------------------------------------
DATABASES['default']['NAME'] = get_secret('POSTGRES_DB')
DATABASES['default']['USER'] = get_secret('POSTGRES_USER')
DATABASES['default']['PASSWORD'] = get_secret('POSTGRES_PASSWORD')
DATABASES['default']['HOST'] = get_secret('DATABASE_HOST')
DATABASES['default']['PORT'] = get_secret('DATABASE_PORT')

It would be more convenient if there was one environment variable like DATABASE_URI=postgresql://chris:chris1234@localhost:5432/chris

@jennydaman jennydaman changed the title Accept database parameters as a URI instead of separate environment variables Accept database parameters as Service Binding or URI instead of separate environment variables Nov 22, 2024
@jennydaman
Copy link
Contributor Author

Or, Service Binding: https://servicebinding.io/application-developer/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant