Django part 2 - question

seed.sql has no data for order and orderitem table. Are we suppose to insert the data ourselves? I was surprise to see successful delete for product with id = 1. In the video 16- Deleting Objects, the delete suppose to hit the foreign key constraint and raise an exception.

1 Like

Yes! I know that part.

The part I don’t know is why the seed.sql did not execute because of many and various errors.

So I have no data right now…as I cannot get the seed.sql file working to execute it to populate…I’m one step behind you…did your seed.sql file execute?

Hey, did you manage to find the solution? If so, what would it be? I had the same trouble. Thanks!