0_mik_0
ImportError: cannot import name 'checksum' from 'modeltranslation.models'
I also wanted to ask how to transfer all my data from db.sqlite3 to PostgreSQL?
I found a solution to this problem but I'm afraid that all data is deleted:
Next, delete all migration files and create a new migration file for each application. The following command will allow you to delete the old migration files:
find. -path “/migrations/.py” -not -name “init.py” -delete
find. -path “/migrations/.pyc” -delete
do
python manage.py makemigrations
python manage.py migrate
53 replies