https://github.com/xionxiao/django-simple-category
A simple and extendable hierarchical category app for django.
https://github.com/xionxiao/django-simple-category
django libaray
Last synced: about 1 month ago
JSON representation
A simple and extendable hierarchical category app for django.
- Host: GitHub
- URL: https://github.com/xionxiao/django-simple-category
- Owner: xionxiao
- License: bsd-3-clause
- Created: 2020-09-11T03:38:18.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-10-04T14:51:17.000Z (over 3 years ago)
- Last Synced: 2025-12-25T09:52:08.068Z (5 months ago)
- Topics: django, libaray
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://badge.fury.io/py/pip)
# Django Simple Category
> A simple django category libaray
This simple libaray provide an abstract Category class for django whitch does not need MPTT support.
## Feature overview
- Abstract Category class
## Install
```shell
pip install django-simple-category
```
## Usage
1. Add "simple-category" to your INSTALLED_APPS setting like this:
```python
INSTALLED_APPS = [
'category',
]
```
2. Inherit from the Category class like this:
```python
from simple_category.models import Category
class MyCategory(Category):
pass
```
3. Run migrations to create your category models.
```shell
python manage.py makemigrations
python manage.py migrate
```