Hello,
I have a question regarding dynamically putting files into a Tethys App I have created and having a way to reference those files programatically in my JQuery. I have folders that are uploaded at different times to my app into a subfolder of the Public directory; these folders contain css, jquery, javascript, and html. The problem I am facing is that I can use my controller.py to find these paths serverside and reference but when I pass these locations through to the html, the paths I am passing are absolute paths on the server. What I need is to be able to pass the location relative to the domain of my app. I was told that since I am placing the files in my Public folder of my app, that I would need to run collectstatic each time so that I can capture these locations on my app domain so that the potential user that is not serverside could reference said html. Does that make sense? Is there a way to find these files without running collectstatic?
Any input is appreciated :)
Noah