I'm trying to build a website with Django where you can view different 360 videos.
The videos are created with a software (3dVista) that generates a web build folder with an index.htm file and some javascript code and other media files.
In order to view the web build I have to open the index.htm file.
The problem is that inside the index file are referenced multiple javascript and media files like this: href="main.js?v=23182178412"
, so I have to substitute all the references with the Django syntax {% static 'path/to/main.js' %}
.
This is very tedious and sometimes it doesn't work because I cannot find all the references within all the files.
Is there a way to avoid this in Django? Or is it better to host the web builds on another server?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…