Re: [web2py] Re: confused about db.py settings

2013-06-28 Thread Tom Russell
Nice, I will check that out. On Fri, Jun 28, 2013 at 1:37 PM, Anthony wrote: > Yea thanks I tried that as well with no luck. > > > Then you're doing something else wrong. It might help if you show all of > the code. If you have a model file that does: > > db = DAL(...) > ... > auth = Auth(db) >

Re: [web2py] Re: confused about db.py settings

2013-06-28 Thread Tom Russell
Well whatever the case was it did give me some errors, cant remember which now but I tried a few things to no avail. I know its always this way starting out, been around the block a few times already :) On Fri, Jun 28, 2013 at 1:34 PM, LightDot wrote: > On Friday, June 28, 2013 6:59:19 PM UTC+

Re: [web2py] Re: confused about db.py settings

2013-06-28 Thread Anthony
> > Yea thanks I tried that as well with no luck. Then you're doing something else wrong. It might help if you show all of the code. If you have a model file that does: db = DAL(...) ... auth = Auth(db) auth.define_tables() The db.auth_user will be available in any subsequent model as well as

Re: [web2py] Re: confused about db.py settings

2013-06-28 Thread LightDot
On Friday, June 28, 2013 6:59:19 PM UTC+2, Tom Russell wrote: > > Yea thanks I tried that as well with no luck. > That's impossible. But never mind, hang in there, after you finish your first project, you'll be remembering this beginnings with a smile. > I ended up just creating a new db_wizar

Re: [web2py] Re: confused about db.py settings

2013-06-28 Thread Tom Russell
Yea thanks I tried that as well with no luck. I ended up just creating a new db_wizard.py in my model and this set up works great now. Its mentioned in the book but thats it, just mentioned. For new users there should be a guide to setting all of this up correctly. Maybe there is? I could write som

[web2py] Re: confused about db.py settings

2013-06-28 Thread LightDot
Well, you have: db = DAL('sqlite://storage.sqlite',pool_size=1,check_reserved=['all']) defined, then you initiate auth with: auth.define_tables(username=True, signature=True) which sets up auth tables etc. in the above database. But then you override the previously set db with: db = DAL('sqli