Re: [web2py] Routes for usernames

2012-05-04 Thread Bruno Rocha
your app real address: localhost/init/default/user/rhys where in request is args[0] And you want to pass: /args[0] So you can try it in your models/0.py my_controllers = ['default', 'other'] my_functions = ['index', 'user', 'contact', 'show'] if not request.controller in my_controllers:

[web2py] Routes for usernames

2012-05-04 Thread Rhys
Hey Everyone, I'm trying to figure this one out, but can't seem to find the right way of doing it. Basically I want to be able to route incoming urls which have a persons username in the url to a default chosen controller. It's like how Facebook and Twitter do it. www.facebook.com/rhys.tague a