From caf5cd7ba7c9d73194e394a26c81f1a677d54a6c Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sun, 28 Sep 2014 13:32:26 +0200 Subject: [PATCH] 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. --- django/conf/project_template/project_name/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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