S
S
s1vemod2021-03-19 11:16:40
Django
s1vemod, 2021-03-19 11:16:40

How to fix error with MySQL in Django on server?

Good afternoon, I'm putting the project on hosting, or rather on timeweb .

Everything seems to be fine, there is dump.json, migrations, and so on.

But the problem is this error:

AttributeError: module 'MySQLdb.constants.FIELD_TYPE' has no attribute 'JSON'


The virtual environment is python3.6 , as well as mysqlclient==2.0.3 .

But the error still remains.

What could be the problem?

Commands such as:
$ python manage.py dumpdata --indent=2 --exclude=contenttypes > datadump.json
$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py loaddata datadump.json


No errors are thrown.

Are there any suggestions what could be wrong and how to fix it?

Thank you in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question