I am trying to make a TicTacToe web app with an AI playing as player 2. To do this I coded the game and AI in python, wrote html/javascript front end, and used a flask server. In the html I have img tags and assets such as (these are embedded in the html file in the traditional manner):
<img id="pic" src="assets/images/hil.jpg" class="X">
or
<audio src="assets/audio/smw_coin.wav" id="marioStart" preload="auto"></audio>
However, I get errors of this form.
127.0.0.1 - - [11/Feb/2016 23:52:22] "GET /assets/audio/smb_pipe.wav HTTP/1.1" 404 -
127.0.0.1 - - [11/Feb/2016 23:52:22] "GET /assets/js/jquery-1.11.3.js HTTP/1.1" 404 -
Flask seems to interpret this as a domain name instead of check the assets folder. Does anyone know how to get Flask to interpret the src request as a directory in the flask templates folder?
PS. This is also an issue because it stops me from including JQuery in my html file.