python - How to display uploaded document(.doc,.docx,.pdf,.odf) in document viewer -


i had upload documents , stored in database.now try display document in browser using google document viewer.but not displayed.in output page having 1 link while click link download particular document. have post both code , output below.give me idea display document.

templates

<iframe src="http://docs.google.com/viewer?url=http://127.0.0.1:8000/accounts/media/{% detail in profile_detail %}{{ detail.res_act }}{% endfor %}&embedded=true" style="margin:0 auto; width:800px; height:800px;" frameborder="0"></iframe> 

output

sorry, unable find document @ original source. verify document still exists. can try download original document clicking here. 

127.0.0.1 accessible own computer. cannot accessed remotely; why google viewer cannot show document.


Comments