Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
185 views
in Technique[技术] by (71.8m points)

Serve interactive 360 video on Django

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?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...