The following tables have been created: ..._auth_cas.table ..._auth_event.table ..._auth_group.table ..._auth_membership.table ..._auth_permission.table ..._auth_user.table
and work just fine. Now, I created the table 'inquiry'. When the code that creates it is located in mini-site.py (in models), the new table is not created (and the sql code that should created it is not in sql.log either, so there are no errors or something). But when I take the same very code and move it into db.py - sql.log has appropriate sql code and the table ..._inquiry.table is created successfully. So the only difference is which model file contains the code - db.py or mini-site.py. No other differences. Weird. On Mon, Feb 25, 2019 at 12:33 AM Massimo Di Pierro < [email protected]> wrote: > How do you know the table has not been created? > Do you have database/*.table files? > If this is a new app and you are sure the tables are not created, try > delete those files. > > On Sunday, 24 February 2019 15:58:20 UTC-8, Vlad wrote: >> >> When I define a table in db.py - it's just fine. But if I create a new >> file - the admin interface picks it up, i.e. tells me that this model is >> creating the table, but the table is not actually created. What would cause >> such a difference?? It's really strange, as in other projects I define >> tables in various files, not in db, and it has never been a problem for me. >> I can't detect any difference - >> > -- > 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. > -- 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.

