Django-rest-framework API for django-categories
Project description
Django Categories
This application provides basic django-rest-framework
API for Django Categories.
Features of the project
The output contains category tree with counts of category items in each node (cummulative as well as direct counts).
Countable fields
The API can contain number of related objects associatet with category.
This can be achieved by setting COUNTABLE_FIELD_RELATED_NAMES
property in CATEGORIES_SETTINGS
:
CATEGORIES_SETTINGS = {
"COUNTABLE_FIELD_RELATED_NAMES": ('field_name'),
}
Settings
The cache timeout and staggering can be changed by:
CATEGORIES_SETTINGS = {
"CACHE_TIMEOUT": 60 * 60,
"CACHE_STAGGERING": 60 * 10,
}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-categories-api-0.2.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01407c0536a75466ae26a22837cb748908addec645d95dd1e5a3d518c7140c90 |
|
MD5 | 6cee96faa49b9719841054f50a699a3a |
|
BLAKE2b-256 | fc80333a4b34b907d89652790f0a0626c338a96b5e3221f608b2489a0f6c091d |
Close
Hashes for django_categories_api-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 234bb2db6d31f19b94dd209b37762a5628d2e3f2247f01902117f66f4db2683c |
|
MD5 | ffc43577183b47868ca26ac222abac5c |
|
BLAKE2b-256 | 558c5c210f88395d687b144d963f69706fdc855e58fb0ac28b62d686d013e28f |