All I want to know is, how do I make test.html (a file in the static folder, in the frontend package) show up?
I put the handler for it in the include.yaml file( file outside the static folder), and listed frontend under the includes in the app.yaml file (a file outside the frontend package)
My directory looks like this:
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)
//================================
My include.yaml (in the frontend package) looks like this (Yes, everything is commented out because nothing I try is working):
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
//===============================================
My app.yaml file (not in the frontend package, same level as it) looks like this:
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
Thoughts?