# Django part 2 - question

**URL:** <https://forum.codewithmosh.com/t/django-part-2-question/7870>\
**Category:** Django\
**Created:** [October 11, 2021, 7:19pm UTC](https://forum.codewithmosh.com/t/django-part-2-question/7870 "2021-10-11T19:19:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![echen770](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@echen770](https://forum.codewithmosh.com/u/echen770)\
**Post date:** [October 11, 2021, 7:19pm UTC](https://forum.codewithmosh.com/t/django-part-2-question/7870/1 "2021-10-11T19:19:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mdd228](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@mdd228](https://forum.codewithmosh.com/u/mdd228)\
**Post date:** [March 24, 2022, 6:16pm UTC](https://forum.codewithmosh.com/t/django-part-2-question/7870/2 "2022-03-24T18:16:10Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![johnarthur](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@johnarthur](https://forum.codewithmosh.com/u/johnarthur)\
**Post date:** [July 28, 2022, 12:30am UTC](https://forum.codewithmosh.com/t/django-part-2-question/7870/3 "2022-07-28T00:30:41Z")

</div>

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