Hi guys, I run into a problem while trying to input data into a database. I
am still new to web2py and python in general and i do hope i'll get some
hekp here.
*I got this error*
<class 'sqlite3.IntegrityError'>(Members.Book_Status may not be NULL)
*and the database i defined is this one*
db.define_table('Books', Field('Shelf_no',notnull=True),Field('Title',
notnull=True),Field('Author',notnull=True),Field('Publisher',notnull=True),Field('Author',notnull=True),Field('Category',notnull=True,requires=IS_IN_SET(['Adult','Children']))),Field('Book_Status',notnull=True,requires=IS_IN_SET(['Available','Not
Available']))
I realy cant figure out where i went wrong or if am doing the correct this.
Will appreciate any help i get
--
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.