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

  • 0
    samuel-bonilla-11088  8 years ago

    the database does not work, example:

    I change self.config.db.uri = "sqlite :/ / nuevabase.sqlite" but it still connects to "sqlite :/ / myapp.sqlite".

    the solution:

    class DataBase(DAL, MyApp):
        Subclass of DAL
        auto configured based in config Storage object
        auto instantiate datamodels
        def __init__(self, config, datamodels=None):
            self._LAZY_TABLES = dict()
            self._tables = dict()
            #self.config = config
            db = "sqlite://nuevabase.sqlite"

Commented on:

Create your datamodels in modules

Hosting graciously provided by:
Python Anywhere