1
テンプレートと静的ファイルを含むFlaskブループリントがあります。テンプレートは正しく表示されますが、リンクされたCSSファイルは404が見つかりません。青写真のフォルダの下にある静的ファイルはどのように提供しますか?Flaskブループリントフォルダの下にある静的ファイルを処理します
app/
__init__.py
auth/
__init__.py
static/
style.css
templates/
index.html
auth = Blueprint('auth', __name__, template_folder='templates')
@auth.route('/')
def index():
return render_template('index.html')
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='style.css') }}">