Hi there,

In my routes I have

routes_in=(
 ('/admin(?P<stuff>.*)', '/admin\g<stuff>'),
 ('/my_app/(?P<stuff>.+)', '/my_app/\g<stuff>'),
 ('^.*:/$', '/my_app/main/index'),
 ('/(?P<stuff>.+)', '/my_app/\g<stuff>'),
)
routes_out=(
 ('/admin(?P<stuff>.*)', '/admin\g<stuff>'),
 ('/my_app/(?P<stuff>.+)', '/\g<stuff>'),
)

Which makes my URLS like mydomain.com/<controller>

Is know it's possible to make a default controller say main.py my root
URL so i would type mydomain.com and it would display the main.py
index and say if I typed mydomain.com/profile it would pull the
function 'profile' from main.py. But then if i decided i wanted to
make profile it's own controller and then went to mydomain.com/profile
i would then want it to be pulling from profile.py function index. Is
there away to make the route code about first look in main.py but if
there is a controller with that name override it?

Many thanks in advance :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to