I have an application called init, the app has a controller called 
default.py and inside it I have three functions:

1) /init/default/index  --> The home of the website.

2) /init/default/contact  --> The contact page.

3) /init/default/store  
This function receives an argument: the slug of the name of a store, so the 
function gets that argument and looks for the store in the database. For 
example, these are some urls of stores:
/init/default/store/virtual-bike-store  --> URL for "Virtual Bike Store"
/init/default/store/erbalito-cars --> URL for "Erbalito Cars"
/init/default/store/senn-marketing --> URL for "Senn Marketing"

On the other hand, I have set up routes.py with this:

routers = dict(BASE=dict(default_application='init', 
default_controller='default', default_function='index'))

With this rule, the home is accesible via / and the contact page is 
accesible via /contact

However, store's urls are yet showing "default/store/" in the url. I want 
to access the stores, for example, through, this urls:
/virtual-bike-store
/erbalito-cars
/senn-marketing

Is it possible to achieve that? If so, can anyone point me in one 
direction? I'm having difficult to write my own regular expressions, so I 
will appreciate any kind of help. Thanks in advance. 

P/S:sorry for language erros I probably made.

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to