#34028: Django 'static' template tag fails to generate URLs with SCRIPT_NAME
prefix
---------------------------------+---------------------------------------
Reporter: Stewart Adam | Owner: Sarah Boyce
Type: Bug | Status: assigned
Component: Template system | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+---------------------------------------
Changes (by Sarah Boyce):
* owner: nobody => Sarah Boyce
* status: new => assigned
* has_patch: 0 => 1
* version: 4.0 => dev
Comment:
I was able to replicate the issue that if someone tries to access the
script prefix in a middleware init (as they do in whitenoise), the result
is unexpected.
I have raised a PR which has a regression test and a potential fix 👍
I think this relates to this ticket a bit: #16734
--
Ticket URL: <https://code.djangoproject.com/ticket/34028#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701873e1900b4-896cc771-5467-45b4-8947-29197327780c-000000%40eu-central-1.amazonses.com.