A simple django category libaray
This simple libaray provide an abstract Category class for django whitch does not need MPTT support.
- Abstract Category class
pip install django-simple-category
-
Add "simple-category" to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [ 'category', ]
-
Inherit from the Category class like this:
from simple_category.models import Category class MyCategory(Category): pass
-
Run migrations to create your category models.
python manage.py makemigrations python manage.py migrate