Serve stylesheet with webapp2 outside of Google App Engine

前端 未结 3 1662
谎友^
谎友^ 2021-01-13 22:14

So I have successfully deployed an app using webapp2/jinja2 and a Paste server, but am having trouble serving static stylesheets.

I have had luck accessing static fi

3条回答
  •  抹茶落季
    2021-01-13 22:54

    you dont need a static file handler.
    upload the app with the static file folder by adding this to your app.yaml

    - url: /static/
      static_dir: static
    

    docs are here: https://developers.google.com/appengine/docs/python/config/appconfig#Static_Directory_Handlers

    edit: see answer below in comments

提交回复
热议问题