This is the workaround I have found so far:

Since the name of the application is obtained in layout.html and 
layout.html uses response.title (or request.application but I am sticking 
to response.title) to change the app name (even if the app folder is called 
init) we just need to add this line in the model file:

response.title = 'yourappname'

And that's it, I hope it could help to someone else.

El domingo, 15 de mayo de 2016, 10:48:35 (UTC-5), Bernardo Leon escribió:
>
> Good morning, I just clone the github repository and then create a 
> routes.py file in the web2py folder. This file only have one line:
>
> default_application = 'myapplication'
>
> but it does not, when I try to load my site it defaults to the welcome 
> application, the only way it works is changing its name to 'init' but in 
> the browser I dont want my tab called 'init' but 'myapplication'
>
> Can you help me with this?
>
> I am behind a nginx server if it helps.
>
> Thank you for any answer!
>

-- 
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