Categories
Python Answers

How to fix Python Django migrate returning error “table already exists”?

Spread the love

Sometimes, we want to fix Python Django migrate returning error "table already exists"

In this article, we’ll look at how to fix Python Django migrate returning error "table already exists".

How to fix Python Django migrate returning error "table already exists"?

To fix Python Django migrate returning error "table already exists", we can use the --fake option.

For instance, we write

python manage.py migrate --fake <appname>

to run migrate with the --fake option to run the migrations without creating the table.

Conclusion

To fix Python Django migrate returning error "table already exists", we can use the --fake option.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *