summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-08-28 05:57:36 +0200
committerGitHub <noreply@github.com>2020-08-28 05:57:36 +0200
commite39e727ded673e74016b5d3658d23cbe20234d11 (patch)
treea9eae34a5459ca488ebd11696448920bd9ac807c /docs
parente02738bf55f66939be63f75d4fdcdc2ebc36e435 (diff)
Fixed #31912 -- Removed strict=True in Path.resolve() in project template and CommonPasswordValidator.
This caused permission errors when user didn't have permissions to all intermediate directories in a Django installation path. Thanks tytusd and leonyxz for reports. Regression in edeec1247e52de6fc32cee93e96d4ce36003ea4b and 26554cf5d1e96db10d0d5f4b69683a22fb82fdf8.
Diffstat (limited to 'docs')
-rw-r--r--docs/howto/overriding-templates.txt2
-rw-r--r--docs/releases/3.1.1.txt5
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/howto/overriding-templates.txt b/docs/howto/overriding-templates.txt
index 71eb14b0c4..0f88069069 100644
--- a/docs/howto/overriding-templates.txt
+++ b/docs/howto/overriding-templates.txt
@@ -29,7 +29,7 @@ called ``blog``, which provides the templates ``blog/post.html`` and
from pathlib import Path
- BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
+ BASE_DIR = Path(__file__).resolve().parent.parent
INSTALLED_APPS = [
...,
diff --git a/docs/releases/3.1.1.txt b/docs/releases/3.1.1.txt
index 83ff2b07d2..84f9020c53 100644
--- a/docs/releases/3.1.1.txt
+++ b/docs/releases/3.1.1.txt
@@ -43,3 +43,8 @@ Bugfixes
* Fixed ``__in`` lookup on key transforms for
:class:`~django.db.models.JSONField` with MariaDB, MySQL, Oracle, and SQLite
(:ticket:`31936`).
+
+* Fixed a regression in Django 3.1 that caused permission errors in
+ ``CommonPasswordValidator`` and ``settings.py`` generated by the
+ :djadmin:`startproject` command, when user didn't have permissions to all
+ intermediate directories in a Django installation path (:ticket:`31912`).