diff options
author | Adam Johnson <me@adamj.eu> | 2020-03-18 12:00:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-18 13:00:32 +0100 |
commit | ba4389a36b5fb1afce0cddb4e28233138b6612b7 (patch) | |
tree | 001d5f90f45c13514996f7f31f79545efecf951f /django/conf | |
parent | 6929f13254ce42b0a4ee5d677591d47b61023ae7 (diff) | |
download | django-ba4389a36b5fb1afce0cddb4e28233138b6612b7.tar.gz |
Simplified settings' BASE_DIR definition with pathlib.Path.parent.
Diffstat (limited to 'django/conf')
-rw-r--r-- | django/conf/project_template/project_name/settings.py-tpl | 2 |
1 files changed, 1 insertions, 1 deletions
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 |