I have an issue in Flask. I have my html, css and js files in the same folder and same directory as my python file. I have no templates/static folder as such. When I do this in flask:
app = Flask(__name__, template_folder='.', static_folder='.')
My html gets rendered correctly, but when I open the link the css and js don't get added to the html. They are linked in the html as
<link rel="stylesheet" type="text/css" href= "index.css"> and <script src="final.js"></script>
File names are absolutely the same. What am I doing wrong?
I tried what chatGPT said, it isnt working. I am on linux/ubuntu if that is of any significance. I would really appreciate the help.