-
-
Notifications
You must be signed in to change notification settings - Fork 952
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use os.PathLike in StaticFiles for directory (#1007)
* Use os.PathLike in StaticFiles for directory This allows using `pathlib.Path` in addition to `str` for configuring the base directory of the static files in line with how python3.6+ handles filesystem operations. Fixes #1004 * Fixed `mimetypes.guess_type` not supporting PathLike on py3.7 and below * Updated staticfiles documentation with `PathLike` param
- Loading branch information
1 parent
518da5e
commit 9387832
Showing
4 changed files
with
40 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters