2
SQLite를 사용하도록 장고 웹 서버를 구성했습니다.SQLite는 참조 무결성을 지원합니까?
다차원 (여분 필드 포함) 관계에서 Django는 관계 모델을 사용하여 두 객체 사이의 관계를 설정하도록 강요합니다. 그러나 관련 테이블에 아직 존재하지 않는 개체 들간의 관계를 만들 수 있습니다. 예컨대 들어
:
I have table1 and table2 which are related via table12.
In table1, there is just one object called A.
In table2, there is just one object called X.
I can create a record in table12 that depict a relationship between A & Y; even though Y doesn't exist in table2.
내 관계 모델을 적절하게 외래 키를 표시했다.
또한 장고에서 사용할 수있는 방법을 찾았습니다! http://stackoverflow.com/questions/6745763/enable-integrity-checking-with-sqlite-in-django – mynk