アプリケーションをherokuにデプロイしようとしていました。sqliteを使用していたので、設定をpostgreSQLに変更しました。初期データinitial_data.jsonがあり、それを削除しましたが、初期データがなくてもsyncdbを試行すると、このエラーが発生し続けます.
File /usr/local/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/base.py, line 44, in execute
return self.cursor.execute(query, args)
django.db.utils.IntegrityError: duplicate key value violates unique constraint auth_permission_content_type_id_key