NM found this: https://groups.google.com/group/pylons-discuss/browse_thread/thread/19f7f441b9c20544/c9fcbbc6405b9f5b?lnk=gst&q=setup+version#c9fcbbc6405b9f5b for how to get the app version and a separate discussion on changing URLs dynamically here:
https://groups.google.com/group/pylons-discuss/browse_thread/thread/30359d250a64ef73/4e17dd5d27798003?lnk=gst&q=cdn#4e17dd5d27798003 On Feb 11, 10:33 pm, elgreg <[email protected]> wrote: > I'm deploying a large web-app to the cloud and would like to switch > between versions of static assets using only setup.py. I'm using a CDN > and far-future expires headers, so I need to change the path each time > I deploy (and, even, better, at will without have to load up new > files). My current plan is to bake the version number of the project > into each static path URL and change the URL to bust the user's cache. > > 1. Does anyone know how to access the version of the project (right > now only adjusted in setup.py) in mako files and/or have a good low- > cpu strategy for changing the URL each time static assets are updated? > 2. Any advice on how to make .mako perform well with variables > updating the path (sometimes a group of files, sometimes paths to the > concatenated files, sometimes to just one or two large concatenated > files). > > Thanks! -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
