Static files in Flask – robot.txt, sitemap.xml (mod_wsgi)

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="")

Leave a Comment