Hi, I have been fighting this error for a longtime, I can't seem to find out where this error is coming from.
MY MODEL db.define_table('discussion',Field('title','string',requires = (IS_NOT_EMPTY(),IS_NOT_IN_DB(db,'discussion.title'))), Field('post','text',requires = IS_NOT_EMPTY()), auth.signature) db.define_table('replies', Field('post', 'reference discussion',readable= False, writable = False), Field('reply','text',requires = IS_NOT_EMPTY()), auth.signature) However when I make a comment through the appadmin interface I get this error Ticket ID 127.0.0.1.2018-08-28.17-27-14.dfc1d557-f5a8-4f7b-a558-4c97daf7a622 <class 'sqlite3.IntegrityError'> FOREIGN KEY constraint failedVersion web2py™ Version 2.16.1-stable+timestamp.2017.11.14.05.54.25Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. Traceback (most recent call last): File "/home/melo/Desktop/projects/web2py/gluon/restricted.py", line 219, in restricted exec(ccode, environment) sqlite3.IntegrityError: FOREIGN KEY constraint failed During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/melo/Desktop/projects/web2py/gluon/restricted.py", line 141, in __init__ self.traceback = traceback.format_exc() AttributeError: 'NoneType' object has no attribute 'strip' -- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.