Re: [pylons-devel] static_url usage

2014-09-18 Thread davide moro
Hi, a couple of people reported problems related with the prerequisites installation (nodejs). Here you can find a write up that should helps if you are in trouble with the pyramid_starter_seed template installation: * http://davidemoro.blogspot.com/2014/09/pyramid-starter-seed-yeoman-part-2.html

Re: [pylons-devel] static_url usage

2014-09-16 Thread davide moro
Hi Steve, sure, it would be great! I'm going to add another important feature to pyramid_starter_seed, so probably it is better waiting for the whole picture and then freeze it. I think I will be able to finish by the end of this week (I'm in best effort mode, you know, I'm working on this projec

Re: [pylons-devel] static_url usage

2014-09-16 Thread Steve Piercy
Davide, Would you like to add this to the Pyramid Cookbook? http://docs.pylonsproject.org/projects/pyramid-cookbook/en/latest/ I am not sure under which category it would be placed. We could start a new category, maybe "Developer Workflow Automation"? The default would be "Miscellaneous", bu

Re: [pylons-devel] static_url usage

2014-09-16 Thread davide moro
Hi, thanks to your tips I've just published my first write up about Pylons/Pyramid: * http://davidemoro.blogspot.com/2014/09/pyramid-starter-seed-yeomam-part-1.html Thank you for your support, davide 2014-08-17 23:55 GMT+02:00 davide moro : > Hi Michael! > > > 2014-08-17 2:05 GMT+02:00 Michae

Re: [pylons-devel] static_url usage

2014-08-17 Thread davide moro
Hi Michael! 2014-08-17 2:05 GMT+02:00 Michael Merickel : > You'll want to avoid changing the path in your usage of static_url. > Fortunately, Pyramid supports overriding static assets, so you can > make a dummy path and override that with your dev or production "real" > asset path. > > config.ad

Re: [pylons-devel] static_url usage

2014-08-16 Thread Michael Merickel
You'll want to avoid changing the path in your usage of static_url. Fortunately, Pyramid supports overriding static assets, so you can make a dummy path and override that with your dev or production "real" asset path. config.add_static_view('images', 'p_started:webapp/images') config.override_asse

Re: [pylons-devel] static_url usage

2014-08-16 Thread davide moro
2014-08-16 6:59 GMT+02:00 Karl O. Pinc : > Hello, > > On 08/15/2014 05:39:51 PM, davide moro wrote: > > Is there a way to generate a static url using the name "images" > > registered > > in add_static_view? > > I mean: > > >>> ${request.static_url('p_started:images/pyramid.png')} > > instead o

Re: [pylons-devel] static_url usage

2014-08-15 Thread Karl O. Pinc
Hello, On 08/15/2014 05:39:51 PM, davide moro wrote: > I've registered a static view > > >>> config.add_static_view('images', > 'p_started:webapp/app/images', > cache_max_age=3601) > So depending on > the > .ini settings my app will register webapp/app/images or > webapp/dist/images > (