http://example.com/static/dynamic_dir_one/css/style.css == /static/dynamic_dir_one/html/css/style.css- url:
/static/(.+)/html/(.*) static_dir: /static/\1/html/\2 Your regexp rule does not match your path. Also the rule you want is static_files not static_dir: /static/(.+)/*css*/(.*) static_*files*: /static/\1/*css*/\2 On Tue, Apr 7, 2009 at 3:31 PM, Lee Olayvar <[email protected]> wrote: > I'm having a bit of trouble matching a url argument, perhaps someone can > tell me what im doing wrong? > > The example i am roughly following is: > > handlers: > > > - url: /item-(.*?)/category-(.*) > static_files: archives/\2/items/\1 > > > So the problem is i have a directory where there is a "dynamic" in the > middle of static directories, which means i need to use a url argument of > sorts. Some examples of what this looks like, with the url on the left and > directory on the right, would be: > > http://example.com/static/dynamic_dir_one/css/style.css == > /static/dynamic_dir_one/html/css/style.css > http://example.com/static/dynamic_dir_two/css/style.css == > /static/dynamic_dir_two/html/css/style.css > > Now its that dynamic dir in the middle causing problems. > > Here is the app.yaml code i am attempting to use to solve this: > > - url: /static/(.+)/html/(.*) > static_dir: /static/\1/html/\2 > > What is wrong with that? Now i havent used regex in atleast 3 or 4 years, > so im having a hell of a time figuring it out again, but doesn't that equate > to: > > /static/(any character except linebreaks up to "/")/html/(anything else) > > Any ideas? I'd appreciate a hint at what im doing wrong. > > Thanks, > Lee > > > > -- Alkis --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
