Answer the question
In order to leave comments, you need to log in
How to set paths of static files in flask?
I made a site on flask http://www.air-sites.ru, well, there is little from flask, just one page. And that's what confuses me, if you look at the page code, then static files are given like this script src="/cgi-bin/myapp.py/static/js/jquery.js"
I don't like this /cgi-bin/myapp.py /, what is it, what am I doing wrong ?
Answer the question
In order to leave comments, you need to log in
Perhaps I had a similar problem, only with redirects
, see if Flask-admin can help with redirects, changes the url, how to fix it?
I will add here the man for setting up flask statics flask.pocoo.org/snippets/102
app = Flask(__name__, static_folder='static')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question