inspects the values of each entry in STATICFILES_DIRS here:
and passes them to pathlib.Path(staticfiles_dir) which expects a string,
however according to the documentation each entry in STATICFILES_DIRS may
be either a string or a tuple:
https://docs.djangoproject.com/en/3.2/ref/settings/#prefixes-optional
If a STATICFILES_DIRS entry is provided as a tuple, this check fails with:
TypeError: expected str, bytes or os.PathLike object, not tuple
in python3.9/pathlib.py in _parse_args at line 680
--
Ticket URL: <https://code.djangoproject.com/ticket/32665>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* severity: Normal => Release blocker
* cc: christa (added)
* component: Uncategorized => Core (System checks)
* easy: 0 => 1
* type: Uncategorized => Bug
* stage: Unreviewed => Accepted
Comment:
Thanks for the report.
Regression in c36075ac1dddfa986340b1a5e15fe48833322372.
Reproduced at 413c15ef2e3d3958fb641a023bc1e2d15fb2b228.
--
Ticket URL: <https://code.djangoproject.com/ticket/32665#comment:1>
* Attachment "32665-tests.diff" added.
Regression tests.
* owner: nobody => Mariusz Felisiak
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/32665#comment:2>
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/14291 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/32665#comment:3>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/32665#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"34d1905712d33e72c76b3a55a4fc24abbd11be6c" 34d1905]:
{{{
#!CommitTicketReference repository=""
revision="34d1905712d33e72c76b3a55a4fc24abbd11be6c"
Fixed #32665 -- Fixed caches system check crash when STATICFILES_DIRS is a
list of 2-tuples.
Thanks Jared Lockhart for the report.
Regression in c36075ac1dddfa986340b1a5e15fe48833322372.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32665#comment:5>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"1cc2eaf02d2aa64f7ca4ef52f3d9f13381540007" 1cc2eaf0]:
{{{
#!CommitTicketReference repository=""
revision="1cc2eaf02d2aa64f7ca4ef52f3d9f13381540007"
[3.2.x] Fixed #32665 -- Fixed caches system check crash when
STATICFILES_DIRS is a list of 2-tuples.
Thanks Jared Lockhart for the report.
Regression in c36075ac1dddfa986340b1a5e15fe48833322372.
Backport of 34d1905712d33e72c76b3a55a4fc24abbd11be6c from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/32665#comment:6>