为什么App Engine无法在本地开发中找到CSS?

时间:2016-07-22 15:57:45

标签: css google-app-engine

我在osX上玩GAE,我似乎无法弄清楚如何将Jquery样式表链接到页面。 当我链接到CDN时,css工作正常,但我想修改CSS。

我将本地css文件放在style /中,并确保处理程序设置了CSS的路径。

<link html="style/jquery.mobile.custom.structure.min.css" rel="stylesheet" type='text/css'>

这是app.yaml:

application: workoutlog  
version: 1  
runtime: python27  
api_version: 1  
threadsafe: yes  

handlers:  

- url: /style  
  static_dir: style  

- url: /favicon\.ico    
  static_files: favicon.ico  
  upload: favicon\.ico    

- url: .*  
  script: workoutlog.application  

libraries:  
- name: webapp2  
  version: latest  
- name: jinja2  
  version: latest  

以下是HTML文件的标题:

<head>  
<!-- Include meta tag to ensure proper rendering and touch zooming -->  
<meta name="viewport" content="width=device-width, initial-scale=1">  

<!-- THIS CSS IS NOT SHOWING UP? -->  
<link html="style/jquery.mobile.custom.structure.min.css" rel="stylesheet" type='text/css'>  

<!-- Include the jQuery library -->  
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>  

<!-- Include the jQuery Mobile library -->  
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>  
</head>  

我做错了什么?

1 个答案:

答案 0 :(得分:1)

 Change:   

 <link html="style/jquery.mobile.custom.structure.min.css" rel="stylesheet" type='text/css'>

 to:

 <link href="style/jquery.mobile.custom.structure.min.css" rel="stylesheet" type='text/css'>