Thank you!

I have fixed this problem. Problem is in the incorrect defined
"upload" attribute.

Correct app.yaml definition is:

handlers:
# serving global static files
- url: /static/css
  static_dir: static/css
- url: /static/js
  static_dir: static/js
- url: /static/img
  static_dir: static/img
# serving static files: static/app_name/... -> app_name/static/...
- url: /static/(\w+)/(.*)
  static_files: \1/static/\2
  upload: (\w+)/static/(.*)

You can found more good ideas in our Open Source project -
http://appengine-framework.googlecode.com

Thank you!

On 13 сен, 17:41, alon <[email protected]> wrote:
> http://www.mail-archive.com/[email protected]/msg0713...
>
> maybe this would help?
>
> On Sep 13, 3:59 pm, "GAE-framework.googlecode.com"
>
>
>
> <[email protected]> wrote:
> > Hi all!
>
> > Try to do this (in my case this is Python environment).
>
> > #1. add code to app.yaml file
>
> > application: your-app-id
> > version: 1
> > runtime: python
> > api_version: 1
>
> > handlers:
> > # serving global static files
> > - url: /static/css
> >   static_dir: static/css
> > - url: /static/js
> >   static_dir: static/js
> > - url: /static/img
> >   static_dir: static/img
> > # serving static files: static/app_name/... -> app_name/static/...
> > - url: /static/(\w+)/(.*)
> >   static_files: \\1/static/\\2
> >   upload: \\1/static/\\2
>
> > #2. create file "static/css/test.css". Run application and try 
> > loadhttp://localhost:8080/static/css/test.css-content appear in the
> > browser
>
> > #3. create file "myapp/static/css/test.css". Run application and try
> > loadhttp://localhost:8080/static/myapp/css/test.css-content appear
> > in the browser. This handled by regular expressions in the app.yaml
> > file. File in url "app_name/static/..." to be converted to "static/
> > app_name/..."
>
> > #4. load this project to your appspot server. Try step #2 and #3 on
> > server. In my case step #2 work well, but step #3 don't work.
>
> > Please, can you help me investigate this situation and find how to fix
> > this. Google App Engine developers - I need your help!
>
> > Thank you!

-- 
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