Skip to content
Advertisement

django.db.utils.OperationalError: no such function: JSON_VALID

I literally don’t know how to deal with it and how it is happening I am getting this error when I run python manage.py migrate, migrations were without an error.

Mycode

models.py

JavaScript

views.py

JavaScript

full command line error

JavaScript

If you are able to solve the issue then answer and along with it also tell me any issue in my code or any bad practice in my code If at all answerer 😂! need any more code please ask just solve the issue

Thank You

Advertisement

Answer

In my case the issue was with the file 009_orders.py under migrations folder
There was a JSON field ('products', models.JSONField())
Which is not supported by Sqlite3 (which I am using)

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement