Nowadays you usually just use CSS to make the website responsive, it's 
really easy to do so with bootstrap for example (the CSS framework the 
welcome application uses).

Otherwise you could change the view in the controller function. Example

if request.user_agent()['is_mobile']:
    response.view = 'correct_folder/this_view.mobile.html'


Frankly I wouldn't recommend this. Nowadays detecting mobile is not that 
good of an option as many devices are more than capable of showing the full 
version of your website and its better to just adapt the website using CSS.

 

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