Hi,
I were playing with Shell mode, to explain some DAL features in a class,
I did:
<code>
~/web2py$ python web2py.py -S test -P
..........
application teste does not exist, create (y/n)?y
</code>
OK, web2py creates an app named "test"
So I tried:
<code>
>>> from gluon import *
>>> base = DAL('sqlite://mybase.db')
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/bruno/web2py/gluon/sql.py", line 3990, in DAL
raise RuntimeError, "%s (tried 5 times)" % exception
RuntimeError: unable to open database file (tried 5 times)
</code>
I realize that web2py does not create the "databases" folder for the "test"
app,
Then I created manually that folder "mkdir databases", and everything works
well.
Why web2py does not create that folder?
tks
--
http://rochacbruno.com.br