From ba4389a36b5fb1afce0cddb4e28233138b6612b7 Mon Sep 17 00:00:00 2001
From: Adam Johnson <me@adamj.eu>
Date: Wed, 18 Mar 2020 12:00:32 +0000
Subject: [PATCH] Simplified settings' BASE_DIR definition with
 pathlib.Path.parent.

---
 django/conf/project_template/project_name/settings.py-tpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/django/conf/project_template/project_name/settings.py-tpl b/django/conf/project_template/project_name/settings.py-tpl
index 7d230ef0cc..64d32d7059 100644
--- a/django/conf/project_template/project_name/settings.py-tpl
+++ b/django/conf/project_template/project_name/settings.py-tpl
@@ -13,7 +13,7 @@ https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/
 from pathlib import Path
 
 # Build paths inside the project like this: BASE_DIR / 'subdir'.
-BASE_DIR = Path(__file__).resolve(strict=True).parents[1]
+BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
 
 
 # Quick-start development settings - unsuitable for production