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

Support for environment variables #28

Open
nerdalertdk opened this issue Apr 24, 2024 · 1 comment
Open

Support for environment variables #28

nerdalertdk opened this issue Apr 24, 2024 · 1 comment

Comments

@nerdalertdk
Copy link
Contributor

To continue #23

If you are gonna anything big with the config system, please consider support for ENV
it even support a default value.

https://www.geeksforgeeks.org/python-os-getenv-method/

@nerdalertdk
Copy link
Contributor Author

This would keeping our config file easy to maintain, only have the options we changed

# If HOSTNAME doesn't exist, presume local development and return localhost
print(os.environ.get('HOSTNAME', 'localhost')

https://medium.com/dopplerhq/using-environment-variables-in-python-for-app-configuration-and-secrets-50f01ea1fd3d

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

No branches or pull requests

1 participant