Fixed #29983 -- Replaced os.path() with pathlib.Path in project template and docs.

Thanks Curtis Maloney for the original patch.
This commit is contained in:
Jon Dufresne 2019-11-07 02:11:27 -08:00 committed by Carlton Gibson
parent 77aa74cb70
commit 26554cf5d1
8 changed files with 24 additions and 24 deletions

View file

@ -52,7 +52,7 @@ you can define a list of directories (:setting:`STATICFILES_DIRS`) in your
settings file where Django will also look for static files. For example::
STATICFILES_DIRS = [
os.path.join(BASE_DIR, "static"),
BASE_DIR / "static",
'/var/www/static/',
]