Django Category Sub Category hierarchical database self recursion table model (1/3)

Опубликовано: 04 Октябрь 2024
на канале: BongCodes Django
1,370
14

#django #selfrelationship #subcategory
Django Category Sub Category hierarchical database self recursion table model (2/3)

In this video tutorial, we will learn how to effectively create a category & sub-category using self-referring foreign keys in the Django model. We can borrow this concept and apply it in an e-commerce project or any project where a hierarchical database is required.
I have used a simple HTML style (or Webdesign) but mainly wanted to demo how we can make sure of the self-referring model to create a hierarchical structure such as Category & Sub-Categories.

FB Page:   / bongcodesdjango  
Follow me at twitter: @sarbadal

Part 1:    • Django Category Sub Category hierarch...