summaryrefslogtreecommitdiff
path: root/docs/intro
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/intro
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/intro')
-rw-r--r--docs/intro/tutorial02.txt4
-rw-r--r--docs/intro/tutorial07.txt2
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt
index c4fad3b78b..569e156c10 100644
--- a/docs/intro/tutorial02.txt
+++ b/docs/intro/tutorial02.txt
@@ -34,8 +34,8 @@ settings:
* :setting:`NAME` -- The name of your database. If you're using SQLite, the
database will be a file on your computer; in that case, :setting:`NAME`
should be the full absolute path, including filename, of that file. The
- default value, ``os.path.join(BASE_DIR, 'db.sqlite3')``, will store the file
- in your project directory.
+ default value, ``BASE_DIR / 'db.sqlite3'``, will store the file in your
+ project directory.
If you are not using SQLite as your database, additional settings such as
:setting:`USER`, :setting:`PASSWORD`, and :setting:`HOST` must be added.
diff --git a/docs/intro/tutorial07.txt b/docs/intro/tutorial07.txt
index 2325ac8074..60fef31da6 100644
--- a/docs/intro/tutorial07.txt
+++ b/docs/intro/tutorial07.txt
@@ -306,7 +306,7 @@ Open your settings file (:file:`mysite/settings.py`, remember) and add a
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [os.path.join(BASE_DIR, 'templates')],
+ 'DIRS': [BASE_DIR / 'templates'],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [