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

Enhancement/Add dotenv support #103

Merged
merged 3 commits into from
Mar 13, 2019

Conversation

c-w
Copy link
Member

@c-w c-w commented Mar 1, 2019

Resolves #94

Previously we were able to configure some aspects of the project via environment variables. This pull request adds the option to configure these settings in a .env file placed in the app/.env folder.

The implementation uses environs which wraps python-dotenv and adds a bunch of nice convenience methods such as automatic type casting and validation of environment variables (e.g. to convert from string to list or from string to boolean).

c-w added 2 commits March 1, 2019 09:31
This makes it more explicit that the environs module should be used to
access environment variables instead of `os.environ` or `os.getenv`
@c-w c-w mentioned this pull request Mar 1, 2019
@Hironsan Hironsan merged commit 2f59060 into doccano:master Mar 13, 2019
@Hironsan
Copy link
Member

Thanks!

@c-w c-w deleted the enhancement/dotenv-support branch March 13, 2019 18:19
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.

2 participants