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

Allows use of Path objects when reading env from the filesystem. #281

Closed
wants to merge 1 commit into from

Conversation

emorozov
Copy link

@emorozov emorozov commented Nov 9, 2020

Allows use of read_env(BASE_DIR / '.env') instead of read_env(os.path.join(BASE_DIR, '.env'))

@jerivas
Copy link

jerivas commented Nov 21, 2020

In the meantime, for anyone looking to use Path without having to import os you can do str(BASE_DIR / '.env') to get the path that read_env will accept

@sergeyklay
Copy link
Collaborator

This is resolved in develop branch. Thank you for the patch, and for helping us make django-environ better. And I am sorry about the delay.

@sergeyklay sergeyklay closed this Aug 31, 2021
@sergeyklay sergeyklay self-assigned this Aug 31, 2021
@sergeyklay sergeyklay added the enhancement New feature or request label Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants