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

前端 未结 10 1819
悲&欢浪女
悲&欢浪女 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 03:54

    One more point to add.Along with above upvoted answers, please make sure the below line is added to app.py file:

    app = Flask(__name__, static_folder="your path to static")
    

    Otherwise flask will not be able to detect static folder.

提交回复
热议问题