If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    josedesoto  11 years ago

    Thanks Bruno for the post!!!

    I am developing one application using this way, but I am not sure how to organize the order when the app creates the tables. They have reference between them. In SQLite does not matter the order how to create the tables, but in Mysql yes, having the error: Can't create table 'xxx' (errno: 150). Any recomendation how to do it?

    replies (1)
    • josedesoto 11 years ago

      I have resolved this issue creating a controller fuction (install) where it creates an instance of a handler in the order the app has to create the tables. Not sure if is the best solution...

Commented on:

Create your datamodels in modules

Hosting graciously provided by:
Python Anywhere