Hi Michael!

2014-08-17 2:05 GMT+02:00 Michael Merickel <mmeri...@gmail.com>:

> 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_asset(to_override='p_started:webapp/images/',
> override_with='p_started:webapp/dist/images')
>
> request.static_url('p_started:webapp/images/pyramid.png')
>


Thank you, it works :)

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pylons-devel+unsubscr...@googlegroups.com.
To post to this group, send email to pylons-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/pylons-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to