Skip to content

Commit 97c063f

Browse files
committed
Readme
1 parent caaf3e0 commit 97c063f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ INSTALLED_APPS = [
2626
]
2727
```
2828

29+
## Upgrade
30+
31+
```bash
32+
pip install django-editorjs-fields --upgrade
33+
python manage.py collectstatic # upgrade js and css files
34+
```
35+
36+
2937
## Usage
3038

3139
Add code in your model
@@ -282,8 +290,8 @@ file.
282290
| `EDITORJS_IMAGE_UPLOAD_PATH` | Path uploads images | `uploads/images/` | `str` |
283291
| `EDITORJS_IMAGE_UPLOAD_PATH_DATE` | Subdirectories | `%Y/%m/` | `str` |
284292
| `EDITORJS_IMAGE_NAME_ORIGINAL` | To use the original name of the image file? | `False` | `bool` |
285-
| `EDITORJS_IMAGE_NAME` | Image file name. Ignored when `EDITORJS_IMAGE_NAME_ORIGINAL` is `True` | `token_urlsafe(8)` | `callable(filename: str, file: django.core.files.uploadedfile.InMemoryUploadedFile)` ([docs](https://docs.djangoproject.com/en/3.0/ref/files/uploads/)) |
286-
| `EDITORJS_VERSION` | Version Editor.js | `2.22.2` | `str` |
293+
| `EDITORJS_IMAGE_NAME` | Image file name. Ignored when `EDITORJS_IMAGE_NAME_ORIGINAL` is `True` | `token_urlsafe(8)` | `callable(filename: str, file: InMemoryUploadedFile)` ([docs](https://docs.djangoproject.com/en/3.0/ref/files/uploads/)) |
294+
| `EDITORJS_VERSION` | Version Editor.js | `2.22.3` | `str` |
287295

288296
For `EDITORJS_IMAGE_NAME` was used `from secrets import token_urlsafe`
289297

0 commit comments

Comments
 (0)