Все, что я хочу знать, как сделать test.html (файл в статической папке, в интерфейсном пакете)?yaml включают обработчики для google app engine/pyDev
Я поставил обработчик для этого в файле include.yaml (файл вне статической папки), и указанный внешний интерфейс под включает в файле app.yaml (файл вне пакета во внешнем интерфейсе)
Мой каталог выглядит следующим образом:
frontend (package)
handlers (package in frontend)
__init__.py (file in handlers)
sass (folder in frontend)
static (folder in frontend)
test.html (file in static)
__init__.py (file in frontend)
include.yaml(file in frontend)
app.yaml (file not in frontend)
// ================================
Мои include.yaml (в интерфейсном пакете) выглядит так (да, все прокомментировано, потому что ничего не пытаюсь работать):
handlers:
#- url: /frontend/static
# static_dir: frontend/statiC### this works in app.yaml, but does not work in this file
#- url: /static
# static_dir: statiC### doesn't work in this file
#- url: /frontend/static
# static_dir: frontend.statiC### doesn't work in this file
#- url: /frontend/static
# static_dir: /frontend/statiC### this does not work in app.yaml, or in this file
// ========================================== =====
Мой файл app.yaml (не в пакете во внешнем интерфейсе, такой же уровень, как это) выглядит следующим образом:
application: edev
version: 1
runtime: python27
api_version: 1
threadsafe: true
includes:
- frontend
#- frontend_admin
#- api
#- mapreduce
handlers:
#- url: /frontend/static
# static_dir: frontend/statiC### this works in app.yaml
#- url: /frontend/static
# static_dir: /frontend/statiC### this does not work in app.yaml
#- url:/
# script: main.app
#- url: /_ah/warmup
# script: warmup.application
#- url: /.*
# script: main.app
builtins:
- remote_api: on
inbound_services:
- warmup
#skip_files:
#- ^(.*/)?#.*#$
#- ^(.*/)?.*~$
#- ^(.*/)?.*\.py[co]$
#- ^(.*/)?.*/RCS/.*$
#- ^(.*/)?\..*$
#- tools.*
libraries:
- name: webapp2
version: "2.5.2"
- name: jinja2
version: latest
Мысли?