On Monday, September 12, 2016 at 5:35:52 AM UTC-4, Massimiliano wrote:
>
> In routes.py
>
> set:
>
> default_application = "myapp"
>
>
>
That will translate http://mysite.com/ to
http://mysite.com/myapp/default/index, but it will not translate
http://mysite.com/mycontroller/myfunction to
http://mysite.com/myapp/mycontroller/myfunction (instead you will get an
"invalid request" error). For the latter, it is better to instead use the
parameter-based rewrite system:
router = {
BASE = dict(default_application='myapp')
}
With the above, you can simply leave "myapp" out of all URLs.
Anthony
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.