See 
http://code.google.com/appengine/docs/python/tools/configuration.html#Static_File_Handlers

"For efficiency, App Engine stores and serves static files separately
from application files. Static files are not available in the
application's file system. If you have data files that need to be read
by the application code, the data files must be application files, and
must not be matched by a static file pattern."

What this is saying is that any file that is matched by a "static"
rule in your app.yaml is only available as a static URL, and cannot be
read directly by your app.

The symlink work-around you discovered this works because the app
uploader treats symlinks as if they were regular files, so it's as if
a copy of form.html exists in your root dir.

--Guido

On Feb 10, 8:08 pm, Jason Dusek <[email protected]> wrote:
>   I have encountered a curious difficulty. Here's how my project
>   directory is set up:
>
>     ./
>       app.yaml
>       css/
>           clear.css
>           green.css
>       form.html           ->  html/form.html
>       form.py
>       html/
>            blank.html
>            form.html
>       index.yaml
>       js/
>          jquery-1.3.1.min.js
>
>   Why do I have that symlink there? It's because I can't access
>   the HTML directory (or other directories) when my app is
>   deployed on Google apps. I can access them fine when I working
>   locally; I also know they are being uploaded, because I can
>   visit, for example:
>
>     http://<my app>.appspot.com/html/form.html
>
>   When I set up my Python program to just respond with a
>   directoy listing, it shows me this on my laptop:
>
>     ['app.yaml', 'css', 'form.html', 'form.py', 'html', 'index.yaml',
> 'js']
>
>   while when I deploy the app, I get:
>
>     ['form.py', 'form.html']
>
>   Now it is clear why `app.yaml` went away -- it does not belong
>   in the application -- but why don't I see `js`, `css` and
>   `html`? This is especially strange because they are referenced
>   in the `app.yaml` file and, as mentioned previously in this
>   message, they are reachable through the URL handlers I set up.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to