Re: [Django] #35312: staticurl_urlpatterns incorrectly uses STATIC_URL that prefixed using SCRIPT_NAME

2024-03-18 Thread Django
#35312: staticurl_urlpatterns incorrectly uses STATIC_URL that prefixed using
SCRIPT_NAME
-+-
 Reporter:  yudhiwidyatama   |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  contrib.staticfiles  |  Version:  5.0
 Severity:  Normal   |   Resolution:  invalid
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Comment (by yudhiwidyatama):

 I am not proposing to remove SCRIPT_NAME from the STATIC_URL, but only to
 adjust the url pattern generated by staticfiles_urlpatterns. If I may ask,
 for what condition the staticfiles_urlpatterns needs SCRIPT_NAME prefix ?
-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e53dd7b5a-f88e4909-a89f-4b22-bf49-da5c89f6955c-00%40eu-central-1.amazonses.com.


Re: [Django] #35312: staticurl_urlpatterns incorrectly uses STATIC_URL that prefixed using SCRIPT_NAME

2024-03-17 Thread Django
#35312: staticurl_urlpatterns incorrectly uses STATIC_URL that prefixed using
SCRIPT_NAME
-+-
 Reporter:  yudhiwidyatama   |Owner:  nobody
 Type:  Bug  |   Status:  closed
Component:  contrib.staticfiles  |  Version:  5.0
 Severity:  Normal   |   Resolution:  invalid
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Mariusz Felisiak):

 * cc: Florian Apolloner, Markus Holtermann (added)
 * resolution:   => invalid
 * status:  new => closed

Comment:

 Thanks for this ticket, however, the proposed change is backward
 incompatible and incorrect. `SCRIPT_NAME` prefix should be added to
 `STATIC_URL` and `MEDIA_URL` set to relative paths and that's how it works
 now, see related #25598 and #32394. If you don't want to serve them on a
 `SCRIPT_NAME` subpath, you should use absolute paths in these settings.
-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e4fe3d561-fa0f9d66-bca9-42d0-acbc-f217602fdc3d-00%40eu-central-1.amazonses.com.


Re: [Django] #35312: staticurl_urlpatterns incorrectly uses STATIC_URL that prefixed using SCRIPT_NAME

2024-03-16 Thread Django
#35312: staticurl_urlpatterns incorrectly uses STATIC_URL that prefixed using
SCRIPT_NAME
-+-
 Reporter:  yudhiwidyatama   |Owner:  nobody
 Type:  Bug  |   Status:  new
Component:  contrib.staticfiles  |  Version:  5.0
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:
 |  Unreviewed
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by yudhiwidyatama):

 * Attachment "urls.py" added.

 this is my change suggestion in contrib/staticfiles/urls.py
-- 
Ticket URL: 
Django 
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018e46f54cac-f37c6e0d-3e57-4a77-88ed-154dfe2a21fd-00%40eu-central-1.amazonses.com.