You can also define models in a module function or class and import into both apps (e.g., the way Auth works). There is also http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Using-DAL-without-define-tables, though you don't get the web2py specific attributes, such as validators, widgets, etc.
Anthony On Tuesday, January 7, 2014 6:44:10 AM UTC-5, Jayadevan M wrote: > > I have an application app1. I want to create another application - app2 > which will use the same set of tables as used by app1. For this, what I > have to do is create a tables.py under app2/models and mention > migrate=False for the common tables. Is that right? Do I have to set > fake_migrate=True and ensure the table files are created under databases > folder in app2? My simple tests tell me it is not necessary. Just for > confirmation. > -- 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/groups/opt_out.

