开发者

file_downloads..want to download an uploaded file

开发者 https://www.devze.com 2023-02-06 20:14 出处:网络
hi to all My project is to upload an excel file and display its content in a template. i have uploaded to an excel file in django successfully by using models.FileField .now what i want is to download

hi to all My project is to upload an excel file and display its content in a template. i have uploaded to an excel file in django successfully by using models.FileField .now what i want is to download that particular file at my defined location(project).I am trying to click on that uploaded file but it is giving me error

Page not found (404) Request Method: GET Request URL: http://localhost:8001/admin/ikapp1/fileupload/2/file/Erode/Erode_3.xls/

file upload objec开发者_如何学Pythont with primary key u'2/file/Erode/Erode_3.xls' does not exist.


Shot in the dark, but omit the last slash in the url? Usually that indicates that you want a directory.

0

精彩评论

暂无评论...
验证码 换一张
取 消