Opened 14 months ago

Last modified 14 months ago

#34892 closed Bug

Static files aren't served correctly on dev server when DEBUG and FORCE_SCRIPT_NAME are enabled — at Initial Version

Reported by: EugeneM Owned by: nobody
Component: contrib.staticfiles Version: 4.2
Severity: Normal Keywords: FORCE_SCRIPT_NAME DEBUG STATIC_URL
Cc: Florian Apolloner Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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)

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top