django-static icon indicating copy to clipboard operation
django-static copied to clipboard

django-static mixing up urls and system file paths for windows machine.

Open akamad opened this issue 13 years ago • 1 comments

While using django-static on windows machine I found that the new filenames that were being created had a "" instead of a "/" in their src. eg.href="/media/css\login_foo_moo_too.css"

instead of href="/media/css/login_foo_moo_too.css"

This issue was happening because on the windows machine django-static was mixing the system path of the file and the url associated with it.

akamad avatar Dec 17 '11 17:12 akamad

Add this after line 551: this_filename = os.path.normpath(this_filename).replace('\\','/')

GeraldXv avatar Sep 12 '14 13:09 GeraldXv