We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using pathlib's Path object to generate a path to a file on windows can't get read by the read_env method.
pathlib
Path
read_env
Before:
env_file = Path.joinpath(BASE_DIR, ".env") if Path(env_file).is_file(): env.read_env(env_file)
After:
env_file = Path.joinpath(BASE_DIR, ".env") if Path(env_file).is_file(): env.read_env(env_file.as_posix()) # Work around
Wondering if library can be updated to handle WindowsPath object too?
WindowsPath
The text was updated successfully, but these errors were encountered:
This is resolved in develop branch. Thank you for the report, and for helping us make django-environ better. And I am sorry about the delay.
develop
Sorry, something went wrong.
sergeyklay
No branches or pull requests
Using
pathlib
'sPath
object to generate a path to a file on windows can't get read by theread_env
method.Before:
After:
Wondering if library can be updated to handle
WindowsPath
object too?The text was updated successfully, but these errors were encountered: