Error: django.db.utils.IntegrityError: duplicate key value violates unique constraint tableName_ColumnName
This can happen sometimes when importing database from another machine using data dump. Execute python manage.py sqlsequencerest appName
and copy-paste output sql commands directly in database. This will fix the index issue.