summaryrefslogtreecommitdiff
path: root/django/conf/project_template
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2014-09-28 13:32:26 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2014-09-28 13:33:29 +0200
commitcaf5cd7ba7c9d73194e394a26c81f1a677d54a6c (patch)
tree96a6f34afb715cf3358f955b7b1d5c5924d34300 /django/conf/project_template
parente1fbb68e4e0aaa18391beb4718864c739929f232 (diff)
Fixed #23436 -- Made BASE_DIR absolute in settings template.
This ensures consistency between Python 3.4+ and earlier versions. Thanks Harry Percival for the report.
Diffstat (limited to 'django/conf/project_template')
-rw-r--r--django/conf/project_template/project_name/settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/conf/project_template/project_name/settings.py b/django/conf/project_template/project_name/settings.py
index 62e7633fa6..2afac2c1a8 100644
--- a/django/conf/project_template/project_name/settings.py
+++ b/django/conf/project_template/project_name/settings.py
@@ -10,7 +10,7 @@ https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
import os
-BASE_DIR = os.path.dirname(os.path.dirname(__file__))
+BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production