Hello,

I have already defined tables in a database.
I need to generate forms using sql form
in my code

db = DAL('sqlite://db.db')

db.define_table('logina',
                                        Field
('uname',requires=IS_NOT_EMPTY()),
                                         )
It complains duplicate field uname.

If I create a new db, then it works fine by creating a database and a
table with that field. At this point, I can see that it makes a  file
in the database directory with that field description.

How can i use an already existing table ? I dont want to define a
table. just reuse the table.

thanks
Arvind
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to