[web2py] Re: domain and download function problem

2011-05-27 Thread Joseph.Piron
So I tried adding c='default' in the URL call or default_controller in the BASE router, that does not work. I also tried with host=True in the call, does not either. Now I activated the server logging and I can see it looks for / download/stock etc in another directory ... :s I really don't

[web2py] Re: domain and download function problem

2011-05-27 Thread Joseph.Piron
Ok I'm not alone on this server and someone had created an alias / download in the conf.d apache directory... Life's tough sometimes.. :) On May 26, 3:31 pm, Anthony abasta...@gmail.com wrote: On Wednesday, May 25, 2011 5:24:49 AM UTC-4, Joseph.Piron wrote: routers = dict( BASE = dict(

[web2py] Re: domain and download function problem

2011-05-26 Thread Joseph.Piron
nobody's got a clue ? :) On May 25, 11:24 am, Joseph.Piron joseph.pi...@gmail.com wrote: Hi guys, i got a strange problem, I have made a simple application picking up data from a database, including an upload field for small photos. This works perfectly if hosted in the classic way, for

[web2py] Re: domain and download function problem

2011-05-26 Thread Joseph.Piron
So as I am investigating this, I gave the pattern based routing system and now it works. Here's my routes.py: routes_in = ( ('/(?Pany.*)', '/stock/\gany'), ) routes_out = ( ('/stock/(?Pany.*)', '/\gany'), ) with that the generated links for the photos are like img src=/default/download/

[web2py] Re: domain and download function problem

2011-05-26 Thread Anthony
On Wednesday, May 25, 2011 5:24:49 AM UTC-4, Joseph.Piron wrote: routers = dict( BASE = dict( domains = { 'stock': 'stock' } ) ) and now, I can access this application at http://stock , but... Now the link to download the images aren't correct anymore: the link accessed from