#34892: Static files aren't served correctly on dev server when DEBUG and
FORCE_SCRIPT_NAME are enabled
-------------------------------------+-------------------------------------
Reporter: EugeneM | Owner: nobody
Type: Bug | Status: new
Component: contrib.staticfiles | Version: 4.2
Severity: Normal | Resolution:
Keywords: FORCE_SCRIPT_NAME | Triage Stage:
DEBUG STATIC_URL | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by EugeneM):
* status: closed => new
* resolution: needsinfo =>
Old description:
> It looks like the bug is from ancient times due to rare use of
> FORCE_SCRIPT_NAME with dev server. So the version to be fixed is unknown
>
> /contrib/staticfiles/handlers.py
> {{{
> def serve(self, request):
> """Serve the request path."""
> -- return serve(request, self.file_path(request.path),
> insecure=True)
> ++ return serve(request, self.file_path(request.path_info),
> insecure=True)
> }}}
New description:
Found out that the ticket was closed but still is interesting in mention
about incorrectly truncated path in 404 message.
Why it's ok ?
--
--
Ticket URL: <https://code.djangoproject.com/ticket/34892#comment:4>
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/0107018b0a8043dc-a7e3d0b9-b657-46df-a2e9-38dcc449c355-000000%40eu-central-1.amazonses.com.