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,
}
Release files for django-categories-api 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-categories-api-0.2.2.tar.gz | 39.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_categories_api-0.2.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 52.1 kB
Release files / django-categories-api-0.2.2.tar.gz
| Download URL | django-categories-api-0.2.2.tar.gz |
|---|---|
| Size | 39.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
01407c0536a75466ae26a22837cb748908addec645d95dd1e5a3d518c7140c90
|
|
BLAKE2b-256 checksum How to use checksums |
fc80333a4b34b907d89652790f0a0626c338a96b5e3221f608b2489a0f6c091d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / django_categories_api-0.2.2-py2.py3-none-any.whl
| Download URL | django_categories_api-0.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
234bb2db6d31f19b94dd209b37762a5628d2e3f2247f01902117f66f4db2683c
|
|
BLAKE2b-256 checksum How to use checksums |
558c5c210f88395d687b144d963f69706fdc855e58fb0ac28b62d686d013e28f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|