From a670e759f52dcbcc873d5678b8b3ebfa681c11da Mon Sep 17 00:00:00 2001 From: Hironsan Date: Wed, 7 Sep 2022 16:05:38 +0900 Subject: [PATCH] Describe how to resolve JSON_VALID error --- docs/faq.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/faq.md b/docs/faq.md index 2ed976ad..9f6349e1 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -89,7 +89,7 @@ On development, edit `docker-compose.dev.yml` file: change `8000:8000` substring The following commands are the procedure for 2~3. -``` +```bash ❯ docker volume ls DRIVER VOLUME NAME local doccano_node_modules @@ -100,3 +100,11 @@ local doccano_www ❯ docker volume rm doccano_node_modules doccano_static_volume doccano_venv doccano_www ❯ docker-compose -f docker-compose.prod.yml build --no-cache ``` + +## django.db.utils.OperationalError: no such function: JSON_VALID + +doccano uses JSONField on SQLite. So you need to enable the JSON1 extension on Python's sqlite3 library. If the extension is not enabled on your installation, a system error will be raised. This is especially related to the user who uses macOS and Python which is less than 3.7, Windows and Python which is less than 3.9. + +If you have this problem, please try the following: + +- [Enabling JSON1 extension on SQLite](https://code.djangoproject.com/wiki/JSON1Extension)