google app engine - Configuring Python GAE app.yaml for Static Files -


i trying url references .css file point single css directory inside of gae python 2.7 project. example, want of these urls...

http://website.com/style.css http://website.com/a/style.css http://website.com/a/b/c-d-e/style.css 

... point file in gae...

/css/style.css 

here app.yaml entry have been playing with:

- url: /.*([^/]*\.css)   static_files: css/\1   upload: css/.* 

what think doing is...
url: use url .css @ end. group string @ end not contain forward slash , ends in ".css".
static_files: use group reference file within css folder.
upload: select files in css folder eligible files.

what doing wrong? points if can explain reply. bonus points if can explain upload item for. thanks!

this worked me:

- url: /.*?([^/]*\.css)   static_files: css/\1   upload: css/.*\.css 

first thing in url regex. after /.* should put '?' because want regex lazy not greedy. otherwise it'll suck whole url .css part because, well, why not.

second thing - in upload part added .css @ end. wild guess me , didn't worked out why helped yet.. :)

hopefully helps. wanted?


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -