I have been working on a Flask project. But I have run into an issue.
To understand my problem properly, you have to take a look at my folder structure.
I want to access the './static/data/wordlist.txt
' in my models.py
file using url_for
syntax.
This is what I have written: url_for('static', filename='data/wordlist.txt')
.
But flask is giving me an error saying: FileNotFoundError: [Errno 2] No such file or directory: '/static/data/wordlist.txt'
Any help as to what I should do would be great!!