[디버깅로그] Django: the current database router prevents this relation 오류 해결법
By 양파개발자 SW의 블로그입니다^^ | 2017년 5월 25일 |
Django 개발 중 다음 에러가 발생해서 어려움을 겪었는데요.Cannot assign "<TV4SectionList: TV4SectionList object>": the current database router prevents this relation. 해결방법을 공유합니다.위 에러는 아래 코드 두 번째 줄에서 발생했어요. section_list_map = TV4SectionListMap()section_list_map.section = TV4SectionList.objects.get(pk=section_uid)section_list_map.save() TV4SectionListMap 의 section 필드는 TV4SectionList를 가리키는 foreign키에요.새로운 TV4Secti