A JS file that I wrote that is integral to the functionality of my webpage does not seem to be loading. The Bootstrap JS CDN injection just before it in my HTML file seems to be functioning fine. Both of these JS files are loaded properly when working locally on my computer in pycharm.
Those lines of code at the end of the HTML file are below, and the local JS reference is where the trouble is coming from:
The filepath should be correct, is there something else that I am doing wrong?
The htdocs folder is the files that contains the files of your website. It’s never included in the URL. If it was, you wouldn’t be able to view anything on example.com, only on example.com/htdocs/.
The only way your local file would work is if you created another directory called htdocs within you htdocs directory and uploaded the files to it.
Also, please note that hotlinking to files on our hosting is not allowed, so the local embed may stop working. But you could omit the domain name and protocol so you can just view the file locally with a local copy of the CSS.