Point 3... Copy models/menu.py from one app to the other... But it is a bad idea...
Richard On Wed, Apr 15, 2015 at 9:48 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > > > On Tuesday, 14 April 2015 15:51:31 UTC-5, Peter Gibson wrote: >> >> I am a beginner with Web2py but am very impressed with what I have seen >> and read so far. >> >> I have plans to use Web2py for a sizable web project. >> >> My project requires a wiki (the built in one will do just fine) and what >> I would refer to as a number of 'models'. For example Twitter, Facebook, >> Accounts, Calendar. >> >> I have three questions which I would appreciate guidance on: >> >> 1. Is it advisable to define each of my 'models' as separate applications >> or to incorporate them all into one (my instinct would be to have them >> separate as their respective functionality is separate). >> > > You can have multiple applications share a DB but if they require each in > order to work, probably they should just be one application with different > controllers and conditional models. > > >> >> 2. My project will consist of multiple applications (at least 2 but >> depends on answer to 1st question). It seems that every application >> defines it own database. How do I specify I want every application to use >> the same database? In particular, I only require one set of auth files. >> > > I would not because you may run into some migration issues (which of the > two apps does migrations?) but you can. The DAL(uri, folder=folder). Make > sure uri is the same and folder point to one and se same folder where to > store .table files. > > Attention. If they are two separate applications it means each of then > must be able to run without the others. This means each of them must have a > db.py and must define the tables it needs. They can overlap but do not have > to. > > >> 3. The menu items will mainly be the same irrespective of which part of >> the site you are on (e.g. public links, wiki links, member links) - what is >> the best way to get the respective menu.py modules to generate the menu >> items? >> >> > Do not understand. > > -- > 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. > -- 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.