T
T
The-TS2021-06-23 15:57:21
Django
The-TS, 2021-06-23 15:57:21

How to fix migrations?

Hey!

Error: here
Code: here
(* More specifically: migration )

I ran this command: ./manage.py makemigrations
Oh, and also, it's all on Heroku

Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Nesterov, 2021-06-23
@Pyhon3x

Most likely, the error occurs due to conflicts between old migration files and changed models.
First you need to remove the migration files in each application, but leave _init_.py .

These ones
60d335c79ea7a719903022.png

After that, drop the base and migrate again.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question