Skip to content

Commit

Permalink
Updated README and version.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocaccamo committed Sep 16, 2020
1 parent 3fe379d commit 5db939d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,23 @@ class CategoryAdmin(TreeNodeModelAdmin):
admin.site.register(Category, CategoryAdmin)
```

---

### `settings.py`
You can use a custom cache backend by adding a `treenode` entry to `settings.CACHES`, otherwise the default cache backend will be used.

```python
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
'LOCATION': '...',
},
'treenode': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
},
}
```

## Usage

### Methods/Properties
Expand Down
2 changes: 1 addition & 1 deletion treenode/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-

__version__ = '0.14.2'
__version__ = '0.15.0'

0 comments on commit 5db939d

Please sign in to comment.