当我将我的应用程序部署到 Google App 引擎时,不再找到 CSS。该应用程序在本地主机中很好。我不确定为什么会这样。应用引擎是否更改了文件结构?我在日志中收到以下错误:
2012-10-26 14:04:37.727 Static file referenced by handler not found:
stylesheets/main.css
这是我的 app.yaml
application: vipermonkeyswhofly
version: 1
runtime: python27
api_version: 1
threadsafe: true
handlers:
- url: /stylesheets
static_dir: stylesheets
- url: /.*
script: vipermonkeyswhofly.app
libraries:
- name: jinja2
version: 2.6
我的 index.html 有这个网址:
<link rel="stylesheet" type="text/css" href="/stylesheets/main.css" /> </head
感谢您提供的任何帮助。我敢肯定,我错过了一些显而易见的事情,但到目前为止我一直没有意识到这一点。