Re: [web2py] Re: URL() unexpectedly including app name in URLs

2011-07-09 Thread Jonathan Lundell
On Jul 8, 2011, at 6:06 PM, Bruno Rocha wrote: On Fri, Jul 8, 2011 at 8:01 PM, Jonathan Lundell jlund...@pobox.com wrote: It depends on your configuration. If apache/nginx is handling static files directly, then web2py never sees it. Otherwise it does. question: i How is the best way for

[web2py] Re: URL() unexpectedly including app name in URLs

2011-07-08 Thread pbreit
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)}}

Re: [web2py] Re: URL() unexpectedly including app name in URLs

2011-07-08 Thread Jonathan Lundell
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='',

Re: [web2py] Re: URL() unexpectedly including app name in URLs

2011-07-08 Thread pbreit
Bingo, thx. Not sure how I missed except that I guess it works either way. But now I have nginx handling /static which I presume is better.

Re: [web2py] Re: URL() unexpectedly including app name in URLs

2011-07-08 Thread Jonathan Lundell
On Jul 8, 2011, at 3:21 PM, pbreit wrote: Bingo, thx. Not sure how I missed except that I guess it works either way. But now I have nginx handling /static which I presume is better. Up to you. The idea is that static URLs aren't very visible to users, so there's less motivation to shorten

Re: [web2py] Re: URL() unexpectedly including app name in URLs

2011-07-08 Thread pbreit
I think I'd rather have my static URLs resemble my other URLs. Seems like if I'm removing the default appname, that should be global? Although I don't even know: on a URL like this, does it even touch web2py?

Re: [web2py] Re: URL() unexpectedly including app name in URLs

2011-07-08 Thread Jonathan Lundell
On Jul 8, 2011, at 3:39 PM, pbreit wrote: I think I'd rather have my static URLs resemble my other URLs. Seems like if I'm removing the default appname, that should be global? Although I don't even know: on a URL like this, does it even touch web2py?