Saturday, December 19, 2020

Django Migration Error - Error : duplicate key value violates unique constraint "auth_permission _pkey"DETAIL: Key (id)=(xxx) already exists.

Python Django Error :

Error : duplicate key value violates unique constraint "auth_permission _pkey"DETAIL: Key (id)=(xxx) already exists.

Solution :

python manage.py sqlsequencereset auth | python manage.py dbshell

No comments:

Post a Comment