Tutorial bootstrap+web2py

1,694 views
Skip to first unread message

Paolo Amboni

unread,
Jul 21, 2015, 11:41:04 AM7/21/15
to web...@googlegroups.com
Can someone point me to a comprehensive tutorial (or a group of tutorial) on how to customize web2py using bootstrap themes?

If I past a theme in bootstrap.mon.css my app always use the black theme.!

Which are the relations between web2py.css, web2py-bootstrap3.css, bootstrap.min.css and bootstrap-theme.min.css?

PS (I've read all the online book and followed all the video tutorial of DiPierro)

Thanks.

Massimo Di Pierro

unread,
Jul 24, 2015, 4:55:57 PM7/24/15
to web2py-users, amb...@gmail.com, amb...@gmail.com
I had answered this and my poste disappeared. :-(

web2py.css is legacy code and unused in the new welcome app. You would use it in apps that do not have bootstrap.

bootstrap.min.css is what it says
web2py-bootstrap3.css includes classes to make the grid and the forms work well with bootstrap
 bootstrap-theme.min.css is the optional theme and you can replace it.

黄祥

unread,
Jul 28, 2015, 6:03:46 PM7/28/15
to web2py-users, amb...@gmail.com, massimo....@gmail.com
i think you can look at this slices

imho, it better to have the response.menu and auth.navbar manually in your layout template, because what i tried before it will be replace by web2py css class. test doing with the template from another, it ruined the view (navbar and menu).
src :

best regards,
stifan

Blutoh

unread,
Aug 2, 2015, 7:56:30 PM8/2/15
to web2py-users

FWIW,  I have only been using web2py bout a month, but I have taken the approach of adding my own style sheet and linking it in the layout.html file.  In my style sheet I override the bootstrap and any other classes that I want to change (and only those classes).  When I have it to my satisfaction, I minify it and change the layout.html link to load the minified file. 

I would like to hear if this is a viable approach, or am I heading for trouble later on?

Thanks,
Blutoh

Massimo Di Pierro

unread,
Aug 2, 2015, 8:48:46 PM8/2/15
to web2py-users
if it works for you there should be no problem.
Reply all
Reply to author
Forward
0 new messages