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
Incompatible with Pathlib from v4.0 #192
Comments
Thanks for reporting this. I guess we just need to cast paths to strings in the appropriate places. |
Same issue here, our previous whitenoise version is 3.3.1, it works fine. But when we upgrade to v4.0, a testcase failed.
Our settings is exactly same as @browniebroke |
Current we change our
|
This was referenced Aug 30, 2018
Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python 3.4 added an awesome tool for working with path, Pathlib, which has a nicer API than
os.path
. We've set up our Django project as follow:Some changes added in v4.0 are now relying on
str.rstrip
when processing files to account for trailing slash (I assume).However, this is breaking our project as pathlib doesn't have the
rstrip()
method:I'll try to send a patch to fix this.
The text was updated successfully, but these errors were encountered: