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
File details
Details for the file django-simple-category-1.0.0.tar.gz.
File metadata
- Download URL: django-simple-category-1.0.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
005e876095fd29a37ed36fde27fe14618762052a19d4a3c4cec5d3ed79844464
|
|
| MD5 |
bece96aa55457295a1ab4a6151f2d68a
|
|
| BLAKE2b-256 |
e0bb793459232a3ed036a3f3b74174231c0a18cee7a38e96e0979a339591625b
|