On Friday, 7 March 2014 09:22:02 UTC-6, ureal frank wrote: > > Hi, > > I'm very new to web2py. > I've started watching Massimo's vimeo posts and I like what I am seeing, > even thinking some concepts are little strange at the beginning :) > > Well, my 3 questions are: > > - Can I define/use multiple menus inside one app? >
Yes. You can have response.menu = [...] in mutiple places and execute them conditionally. > > - While using PostgreSQL or so, can I share the same database between > different apps? I've made this question because I want somehow to split one > site in two apps. The website where users can register for a demo and the > backoffice, running in a different server where users do their stuff. I > just want to share the registered users and information like this. > yes. Just have multiple apps use the same db =DAL(...). Each app will need db.define_table(...) for the tables they need to access. > I think CAS could solve this but I am not sure. > You only need cas if you want to share authentication. > > - finally (sorry guys): Can I hide the appname from the URL? > in routes.py appname = 'yourappname' routes_out = [['/admin/$anything','/admin/$anything'], ['/'+appname+'/$anything','/$anything']] routes_in = [['/admin/$anything','/admin/$anything'],['/$anything',' /'+appname+'/$anything']] > > I hope to have many more questions :) > > Many thanks in advance :) > Frank > -- 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.

