治具をロードする前にコンテンツタイプをリセットしました(Problems with contenttypes when loading a fixture in Django参照)。[django]エラー:コンテンツタイプをリセットできませんでした
しかしcontenttypesのはリセットされませんでした:
...project_dir > manage.py reset contenttypes
You have requested a database reset. This will IRREVERSIBLY DESTROY any data for the "contenttypes" application in the database "my_database". Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel: yes
Error: Error: contenttypes couldn't be reset. Possible reasons:
- The database isn't running or isn't configured correctly.
- At least one of the database tables doesn't exist.
- The SQL was invalid.
Hint: Look at the output of 'django-admin.py sqlreset contenttypes'. That's the SQL this command wasn't able to run.
The full error: (1217, 'Cannot delete or update a parent row: a foreign key cons traint fails')
すべてのヘルプは大歓迎されます。ありがとうございました!
あなたは 'django-admin.py sqlreset contenttypes'コマンドを入力して、エラーが何であるか確認できますか? –
これについての洞察はありますか?あなたはその問題を解決することができましたか? –