How to use static files with django nonrel

后端 未结 3 2182
醉酒成梦
醉酒成梦 2021-02-08 15:37

I\'m trying to use the Django nonrel project for google app engine. I setup the test project as described here. I added a new folder to the project named \"static\" for my stati

3条回答
  •  臣服心动
    2021-02-08 16:02

    app.yaml have nothing to do with Django, but it does configures App Engine front-end. The answer depends on whether you want to serve static files with Django or the front-end (which is, well, cheaper and faster).

    If you just "added" your - url: /static mapping to the end, move it before the /.* wildcard. As all mappings processed from top to bottom — first matching mapping wins.

提交回复
热议问题