Do you want to migrate the entire db? If so, then follow http://web2py.com/books/default/chapter/29/6#CSV-(all-tables-at-once). If you just want to migrate the Auth tables, I suppose you could temporarily change your model files so only the Auth tables are defined (or some subset of tables). Then when you run db.export_to_csv_file(), it will only export the tables defined in your models. Upon import, it won't preserve the original id's, but it will preserve all references among those tables as it constructs new id's.
If you're really only exporting and importing the auth_user table by itself, then why do you need to preserve id's? If you want to preserve references from other tables, you should probably export/import the entire set of inter-related tables together, as described above. Anthony On Monday, January 16, 2012 11:24:23 AM UTC-5, thstart wrote: > > yes, how to have same ID's?

