GAE docs [1] on configuring for serving static files say the "url" param used with static_dir "uses regular expression syntax". I can't seem to get this to work.
I wanted to let the URLs "/stuff/v1/thing.gif", "/stuff/v2/thing.gif", etc. all refer to a file "thing.gif" in my app's "/static/stuff" directory. Tried like this: - url: /stuff/.*/ static_dir: static/stuff But I only get 404s. (Nothing earlier in app.yaml is interfering either). I ended up converting it to this, which works: - url: /stuff/(.*)/(.*) static_files: static/stuff/\2 upload: static/stuff/(.*) So it works, but the syntax is much more cumbersome. Is regex supposed to work with static_dir, and if so what am I doing wrong (or is this a bug)? Thanks. I should say that I have only tested on this dev_appserver (Mac OS X) so far -- haven't verified this problem in production. [1] http://code.google.com/appengine/docs/configuringanapp.html#Static_File_Handlers --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
