Answer the question
In order to leave comments, you need to log in
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'
$ python manage.py dumpdata --indent=2 --exclude=contenttypes > datadump.json
$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py loaddata datadump.json
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question