R
R
rysev-a2014-12-20 15:42:19
Flask
rysev-a, 2014-12-20 15:42:19

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

1 answer(s)
8
89109983838, 2014-12-20
@rysev-a

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 question

Ask a Question

731 491 924 answers to any question