Thank you Anthony and Massimo - I created a new app and managed to make it work - I'm not too sure what I must have done the first time round.
On Wednesday, 11 November 2015 14:54:23 UTC, Massimo Di Pierro wrote: > > It is possible you have a db = DAL(...) in some other model file and that > overrides the db variable from db.py > > On Wednesday, 4 November 2015 08:19:41 UTC-6, Red Beard wrote: >> >> Hi, >> >> My problem is that the auth tables do not appear in appadmin, though the >> system allows me to register users, and it seems to remember them. >> >> >> >> I am following the example in the book (chapter 3, overview: >> http://www.web2py.com/books/default/chapter/29/03/overview) >> >> I have left the model db.py: >> >> from gluon.tools import Auth, Service, PluginManager >> >> auth = Auth(db) >> service = Service() >> plugins = PluginManager() >> >> ## create all tables needed by auth if not custom tables >> auth.define_tables(username=False, signature=False) >> >> >> In front of some functions, the controller, default.py has: >> >> @auth.requires_login() >> >> >> And this seems to work, asking someone not logged in to log in. >> >> Any ideas please? At the moment if I try and reference any of these auth >> tables the system throws up errors. >> >> >> Many thanks >> >> -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.