psycopg2.errors.DuplicateTable: relation "orders_order" already exists

Published on 19 August 2022 11:00 AM
This post thumbnail

Django error - psycopg2.errors.DuplicateTable: relation "orders_order" already exists

psycopg2.errors.DuplicateTable: relation "orders_order" already exists

Solution:

python manage.py migrate --fake

Resource:

https://docs.djangoproject.com/en/3.2/ref/django-admin/#django-admin-migrate

https://stackoverflow.com/questions/29830928/django-db-utils-programmingerror-relation-already-exists