Now I've changed a little, but it still doesn't work:
from db.py
auth = Auth(globals(), db)
db.define_table(
auth.settings.table_user_name,
Field('username'),
Field('password'))
auth.define_tables()
custom_auth_table = db[auth.settings.table_user_name] # ge
Thanks for the advice. This code seems to work:
**
from gluon.settings import settings
from gluon.tools import *
# if running on Google App Engine
if settings.web2py_runtime_gae:
from gluon.contrib.gql import *
# connect to Google BigTable
db = DAL('gae')
# and sto
To customize auth, have a look at:
http://web2py.com/book/default/chapter/08#Customizing-Auth
For one thing, the table definitely needs to be placed between auth =
Auth(globals(), db) and auth.define_tables()
3 matches
Mail list logo