please try this (please ensure that you have the empty db.auth_user):
models/db_insert_auth_user.py
if db(db.auth_user).isempty():
db.auth_user.bulk_insert([{'first_name' : 'Manager', 'last_name' :
'Manager',
'email' : '[email protected]',
'password' :
db.auth_user.password.validate('mypassword')[0],
'gender' : 'Male', 'address' : 'Address',
'zip_code' : '11111',
'city' : 'city', 'country' : 'country',
'phone' : '1'},
{'first_name' : 'Admin', 'last_name' :
'Admin',
'email' : '[email protected]',
'password' :
db.auth_user.password.validate('mypassword')[0],
'gender' : 'Male', 'address' : 'Address',
'zip_code' : '11111',
'city' : 'city', 'country' : 'country',
'phone' : '2'}])
--
---
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].
For more options, visit https://groups.google.com/groups/opt_out.