Jon What does your controller look like? -Jim
On Wed, Apr 22, 2020 at 5:13 PM Jon Paris <[email protected]> wrote: > Yes - I can see that now - but that was in the original scaffolding. > > I moved stuff around and now have this at the start: > > from gluon.contrib.appconfig import AppConfig > from gluon.tools import Auth > > db = DAL("sqlite://storage.sqlite") > > auth = Auth(db) > auth.define_tables(username=True) > > The removed the duplicate entry for db = later in the script. > > Same problem. App works but no authentication request. > > There's still a lot of "extra stuff" in the scaffolded code that I don't > think I need it or not - but no duplication that I can see. > > > On Wednesday, April 22, 2020 at 5:49:45 PM UTC-4, Jim S wrote: >> >> Jon >> >> You're redefining db right above your define_table for 'image'. db is >> already assigned/defined higher up in the db.py file. We don't want to >> redefine it. >> >> I've just been looking at the tutorial you're following and see that it >> seems a bit out-dated. >> >> -Jim >> >>> >>> -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/51UaQT4SxbQ/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/web2py/9efdf98e-a87f-41f3-aeb2-9813ebd9679a%40googlegroups.com > <https://groups.google.com/d/msgid/web2py/9efdf98e-a87f-41f3-aeb2-9813ebd9679a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CAERBpoBaP4StGs3V0CprAkkFASRzVzOhbbtVTgGF%3Dj%2BZtNZMJw%40mail.gmail.com.

