我已经上传了文档并将其存储在数据库中。现在我尝试使用谷歌文档查看器在浏览器中显示文档。但它没有显示。在输出页面中单击该链接时有一个链接,它将下载该特定文档。我在下面发布了代码和输出。给我一些想法来显示文档。
模板
<iframe src="http://docs.google.com/viewer?url=http://127.0.0.1:8000/accounts/media/{% for detail in profile_detail %}{{ detail.res_act }}{% endfor %}&embedded=true" style="margin:0 auto; width:800px; height:800px;" frameborder="0"></iframe>
输出
Sorry, we were unable to find the document at the original source. Verify that the document still exists.
You can also try to download the original document by clicking here.