use a css stylesheet on a jinja2 template

后端 未结 5 712
盖世英雄少女心
盖世英雄少女心 2020-12-28 13:01

I am making a website using html, css, flask and jinja2.

I have a page working on a flask server, the buttons and labels etc. are displayed, but the css stylesheet I

5条回答
  •  隐瞒了意图╮
    2020-12-28 13:57

    The order of handler might cause the problems:

    url: /stylesheets static_dir: stylesheets
    url: /.* script: helloworld.application
    

    will work instead of

    url: /.* script: helloworld.application
    url: /stylesheets static_dir: stylesheets
    

提交回复
热议问题