reddit clone - foreign key constraint failed

59 views
Skip to first unread message

Carlos Zenteno

unread,
Nov 26, 2015, 6:43:33 PM11/26/15
to web2py-users
Coming back to web2py again.

I am going through Massimo's videos and doing the reddit clone.

I use appadmin to add users and categories and all is fine.

then I proceed to add posts manually, without using 'populate'

I get the following ticket/error:


Error ticket for "reddit"
Ticket ID

127.0.0.1.2015-11-26.17-32-59.dcabdfff-16d6-4813-98ff-8992bd6d3370
<class 'sqlite3.IntegrityError'> foreign key constraint failed
Version
 
 web2py
Version 2.12.3-stable+timestamp.2015.08.19.00.18.03
 
Python Python 2.7.2+: /usr/bin/python (prefix: /usr)


I have deleted the database a couple of times and let it regenerate again
wiith  no luck.  Also the post table, same thing.  Don't know what to do now...
any pointers?


Anthony

unread,
Nov 26, 2015, 7:26:11 PM11/26/15
to web2py-users
Not everyone will be familiar with this example, so you should post the relevant code and describe the exact steps to reproduce the problem.

Annexx Xaar

unread,
Aug 22, 2016, 10:10:53 AM8/22/16
to web2py-users
Examine ur controller, its likely from the controller, i had similar issue.
Reply all
Reply to author
Forward
0 new messages