I am not expert in Django, but I am doing a web site where I would like to embed a ppt, which is saved into the static folder. The code of the html is:
{% extends 'base.html' %}
{% load static %}
{% block content %}
<iframe src="{% static 'ppt/pptexample.pptx' %}" style="width:800px; height:600px;" frameborder="0"/>
{% endblock %}
When I load the site, the ppt is perfectly downloaded, but I would like to visualise it online. Then, I have tried to add embedded=true
, that is to say {% static 'ppt/pptexample.pptx' %}&embedded=true
, which did not work. The error message is:
ppt\pptexample.pptx&embedded=true' could not be found
Debug mode states that Request URL is:
http://127.0.0.1:8000/static/ppt/pptexample.pptx&embedded%3Dtrue
Could you recommend me or letting me know how to embed such a PowerPoint document in the Web?
Many thanks in advance