The best way is to set static_url_path to root url
from flask import Flask
app = Flask(__name__, static_folder="static", static_url_path="")
More Related Contents:
- How to serve static files in Flask
- Are a WSGI server and HTTP server required to serve a Flask app?
- Flask view return error “View function did not return a response”
- How do I get the different parts of a Flask request’s url?
- Why use Flask’s url_for?
- Remove file after Flask serves it
- Making an asynchronous task in Flask
- Send data from a textbox into Flask?
- multiple django sites with apache & mod_wsgi
- Serve image stored in SQLAlchemy LargeBinary column
- Flask view shows 400 error instead of template with form
- Create dynamic arguments for url_for in Flask
- How to iterate through a list of dictionaries in Jinja template?
- Flask jsonify a list of objects
- demystify Flask app.secret_key
- ImportError: No module named MySQLdb
- Flask throwing ‘working outside of request context’ when starting sub thread
- How to run Flask app with Tornado
- Run Flask CLI command with PyCharm debugger
- Get list of all routes defined in the Flask app
- Flask App: Update progress bar while function runs
- Get inserted key before commit session
- Where do I define the domain to be used by url_for() in Flask?
- Class (static) variables and methods
- How to run Flask with Gunicorn in multithreaded mode
- Flask isn’t getting the checkbox value
- flask-sqlalchemy or sqlalchemy
- secret key not set in flask session, using the Flask-Session extension
- Which SQLAlchemy column type should be used for binary data?
- Opening csv file in Python using Flask