Servir HTML estático en el motor de aplicaciones de Google Python
Tengo problemas para conseguir estática.html
páginas cargadas para mi aplicación Python. Cuando hago clic en un enlace como index.html, Aparece una página en blanco y en el servidor registro un error 404. Esto es lo mismo para otros static.html
archivos como about.html.
La aplicación funciona salvo los archivos estáticos. He intentado buscar en numerosos lugares, pero parece que no puedo obtener las páginas .html. es decir
INFO 2011-04-16 17: 26: 33,655 dev_appserver.py:3317] "GET / terms.html HTTP / 1.1" 404 -
yaml:
application: quote
version: 1
runtime: python
api_version: 1
handlers:
- url: /index\.html
script: index.py
- url: /
script: index.py
- url: /(.*\.(html))
static_files: static/\1
upload: static/HTML/(.*\.(html))
- url: /favicon.ico
static_files: static/images/favicon.ico
upload: images/favicon.ico
mime_type: image/x-icon
- url: /css
static_dir: static/css
- url: /images
static_dir: static/images
- url: /js
static_dir: static/js
Mis archivos estáticos se encuentran en static / HTML y index.html está en la carpeta principal.
También he intentado esto, pero parece que no hay ninguna diferencia:
- url: /favicon.ico
static_files: static/images/favicon.ico
upload: images/favicon.ico
mime_type: image/x-icon
- url: /css
static_dir: static/css
- url: /images
static_dir: static/images
- url: /js
static_dir: static/js
- url: /(.*\.(html))
static_files: static/\1
upload: static/HTML/(.*\.(html))
- url: /index\.html
script: index.py
- url: /
script: index.py