Groups
Groups
Sign in
Groups
Groups
web2py-users
Conversations
Labels
About
Send feedback
Help
possible to trail url with default application?
22 views
routing
Skip to first unread message
chuan
unread,
Dec 7, 2014, 7:22:21 AM
12/7/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web...@googlegroups.com
I set default_application in routes.py, what I want is when
http://myhost.net/
is visited, the url is automatically expanded to
http://myhost.net/myapp
in the browser address bar. Is it possible?
Massimo Di Pierro
unread,
Dec 8, 2014, 9:29:04 PM
12/8/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web...@googlegroups.com
this would require a redirection. In your code you say:
if request.env.path_info == '/': redirect('/myapp')
Reply all
Reply to author
Forward
0 new messages