diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-12-31 13:18:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 13:18:57 +0100 |
commit | e13b71403bd1568abed237858127677144d43d23 (patch) | |
tree | 95d72ef6b905dabafa88bcc50aaa5b8eb52f84ba /docs/releases/3.1.5.txt | |
parent | a2e3f95b0937f3f1e4a479db219392eb6ded39f7 (diff) | |
download | django-e13b71403bd1568abed237858127677144d43d23.tar.gz |
Fixed #32304 -- Fixed prefixing STATIC_URL and MEDIA_URL by SCRIPT_NAME for absolute URLs with no domain.
Thanks Adam Hooper for the report.
Regression in c574bec0929cd2527268c96a492d25223a9fd576.
Diffstat (limited to 'docs/releases/3.1.5.txt')
-rw-r--r-- | docs/releases/3.1.5.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/releases/3.1.5.txt b/docs/releases/3.1.5.txt index eea060d112..82dc1f0254 100644 --- a/docs/releases/3.1.5.txt +++ b/docs/releases/3.1.5.txt @@ -16,3 +16,9 @@ Bugfixes * Fixed a bug in Django 3.1 that caused a crash when processing middlewares in an async context with a middleware that raises a ``MiddlewareNotUsed`` exception (:ticket:`32299`). + +* Fixed a regression in Django 3.1 that caused the incorrect prefixing of + ``STATIC_URL`` and ``MEDIA_URL`` settings, by the server-provided value of + ``SCRIPT_NAME`` (or ``/`` if not set), when set to a URL specifying the + protocol but without a top-level domain, e.g. ``http://myhost/`` + (:ticket:`32304`). |