조명기를로드하기 전에 컨텐츠 유형을 재설정했습니다 (Problems with contenttypes when loading a fixture in Django 참조).[django] Error : contenttypes를 재설정 할 수 없습니다.
그러나 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' 명령을 입력하여 오류가 무엇인지 확인할 수 있습니까? –
이것에 대한 통찰력이 있으십니까? 문제를 해결할 수 있었습니까? –