Hello,
I have certain problems configuring router + routes.py.
First of all I had a problem that was mentioned earlier routes.py file was 
not working while using nginx + uwsgi. Nevertheless I decided to update to 
trunk and just copied admin from stable (since there were some problems 
with it... not important)

My setup is.
At the moment I have one domain... so if I want I can just define routes_in 
and out in main file.
But I decided to actually prepare the whole thing for other websites thus 
using the router + routes.py(app specific).
I have a file routes.py in main web2py folder and it reads as this:

routers = dict(
        BASE = dict(
                domains = {
                       'menzo.pl:80' : 'menzo',
                       'menzo.pl:443' : 'menzo'
                },
                default_application = 'menzo',
                applications = ['menzo','admin'],
                controllers = 'DEFAULT',
                map_static = True
        ),
)

How this configuration affects local(app) routes.py if at all.
Cause I have in ma app routes.py

routes_in = (
        ('/admin/$anything', '/admin/$anything'),
        ('/static/$anything', '/menzo/static/$anything'),
        ('/produkty/$a','/menzo/produkty/index/$a'),
)

routes_out = [(x, y) for (y, x) in routes_in[:-2]]


admin working fine
static working fine
the third line not really working.

Just to give more context.
I have controller produkty.py with index function (which I would like to 
omit).
Controller does not have any other functions inside. I am aware it can be 
move to default.py and will work out of the box, but I just would like to 
know for future reference if I am doing anything wrong.

I tested the whole section with r'strings' but with same results.

-- 



Reply via email to