Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#8671 closed (worksforme)

django.views.static.serve shoud have APPEND_SLASH=True

Reported by: est Owned by: nobody
Component: Core (Other) Version: master
Severity: Keywords: static
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


When running debug server with some .js .css file using django.views.static.serve while 'show_indexes': True, example, navigate to
when click a 1.jpg listed bellow, I was navigate to

But what I desired URL is

The problem is we should set APPEND_SLASH=True as default here in django.views.static.serve

Change History (2)

comment:1 Changed 12 years ago by Karen Tracey

Resolution: worksforme
Status: newclosed

I cannot recreate this. It looks to me like perhaps you do not have MEDIA_URL set properly in your file. It appears it needs to be set to '/images' in your case but your server is operating as if it were set to the default empty string.

comment:2 Changed 12 years ago by Malcolm Tredinnick

Even if this is recreateable, it's just a bad idea. It's static media. Just specify the right URL. Django shouldn't mess with those URLs just to fix up typos in the HTML files.

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