A simple and extendable hierarchical category app for django.
Project description
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
pip install django-simple-category
Usage
-
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-simple-category-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 005e876095fd29a37ed36fde27fe14618762052a19d4a3c4cec5d3ed79844464 |
|
MD5 | bece96aa55457295a1ab4a6151f2d68a |
|
BLAKE2b-256 | e0bb793459232a3ed036a3f3b74174231c0a18cee7a38e96e0979a339591625b |