summaryrefslogtreecommitdiff
path: root/docs/ref/templates
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2019-11-07 02:11:27 -0800
committerCarlton Gibson <carlton.gibson@noumenal.es>2019-11-07 11:11:27 +0100
commit26554cf5d1e96db10d0d5f4b69683a22fb82fdf8 (patch)
tree57c685edd5ce651611e309e539a5eda80cd2f82b /docs/ref/templates
parent77aa74cb70dd85497dbade6bc0f394aa41e88c94 (diff)
Fixed #29983 -- Replaced os.path() with pathlib.Path in project template and docs.
Thanks Curtis Maloney for the original patch.
Diffstat (limited to 'docs/ref/templates')
-rw-r--r--docs/ref/templates/api.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
index becd34c545..f9647fd83a 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -831,7 +831,7 @@ loaders that come with Django:
TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [os.path.join(BASE_DIR, 'templates')],
+ 'DIRS': [BASE_DIR / 'templates'],
}]
You can also override ``'DIRS'`` and specify specific directories for a
@@ -843,7 +843,7 @@ loaders that come with Django:
'loaders': [
(
'django.template.loaders.filesystem.Loader',
- [os.path.join(BASE_DIR, 'templates')],
+ [BASE_DIR / 'templates'],
),
],
},
@@ -917,7 +917,7 @@ loaders that come with Django:
TEMPLATES = [{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [os.path.join(BASE_DIR, 'templates')],
+ 'DIRS': [BASE_DIR / 'templates'],
'OPTIONS': {
'loaders': [
('django.template.loaders.cached.Loader', [