You need to specify the full path to the database file either relatively
(sqlite://../../foo/bar/storage.sqlite) or absolutely
(sqlite:///path/to/web2py/application/databases)
you may want to use the os.path methods for this but either way should work
for you
On Sunday, November 25, 2012 4:27:17 PM UTC-6, pumplerod wrote:
>
> Sorry, I'm a little unclear on the manual explanation.
>
> as an example, given app1 and app2
>
> I want to have app2 share the database I have built in app1
>
> So do I change the app2/models/db.py file to show: db =
> DAL('sqlite://storage.sqlite',migrate='false') ?
>
> and include all other myModel.py files in app2/models directory as well?
>
> if the database is in app1/databases/ how does app2 know how to find the
> correct database file?
>
--