当我将应用程序部署到Google App引擎时,CSS不再被发现。该应用程序在本地主机上很好。我不确定这是为什么。应用程序引擎是否更改文件结构?我收到以下错误日志中:Google App Engine在部署时丢失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
我很感激你的帮助提供。我确信这是显而易见的,我失踪了,但这一点让我难以理解。
就是这样。非常感谢您的帮助! – ifthenelsenull
太棒了:)也许你可以接受答案;-) –