Application not picking up .css file (flask/python)

前端 未结 10 1821
悲&欢浪女
悲&欢浪女 2020-11-28 03:54

I am rendering a template, that I am attempting to style with an external style sheet. File structure is as follows.

/app
    - app_runner.py
    /services
          


        
10条回答
  •  一生所求
    2020-11-28 04:07

    The flask project structure is different. As you mentioned in question the project structure is the same but the only problem is wit the styles folder. Styles folder must come within the static folder.

    static/styles/style.css
    

提交回复
热议问题