Tag: Solve integrity error duplicate key in Django PostgreSQL

Solve integrity error duplicate key in Django PostgreSQL

Solve integrity error duplicate key in Django PostgreSQL

This error caused by we’re using database from copy / clone database. The sequences will be mixed-up. To solved this, just follow this way : 12python manage.py sqlsequencereset <app-name> > app.sql psql -U username -d database -a -f < app.sql Then your problem shall gone!