On Jul 8, 2011, at 2:31 PM, pbreit wrote:
> It only seems to be happening on images.
> 
> OK:
> URL('default', 'item', extension='', args=item.item.slug)
> http://pricetack.com/item/us-open-2010-pebble-beach-greg-norman-golf-shirt-x-99
> 
> Not OK:
> {{=URL('static', 'uploads', extension='', args=item.item.image_thumb)}}
> http://pricetack.com/init/static/uploads/item.image.b0e43b99a1d0fea6.494d475f323232322e4a5047_thumb.JPG
> 
> Maybe it has to do with 'default' being a controller and 'static' just being 
> a directory?

This is the default behavior of the parametric router. The idea is to make it 
easier to handle static files in the host server.

You can override it by setting the map_static flag:

> #  map_static: By default, the default application is not stripped from 
> static URLs. 
> #       Set map_static=True to override this policy.


Reply via email to