바뀜

둘러보기로 가기 검색하러 가기
86 바이트 추가됨 ,  2021년 9월 23일 (목) 09:34
잔글
157번째 줄: 157번째 줄:     
=== Cannot assign "<SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at *********>>": "Writing.author" must be a "User" instance. ===
 
=== Cannot assign "<SimpleLazyObject: <django.contrib.auth.models.AnonymousUser object at *********>>": "Writing.author" must be a "User" instance. ===
이 에러는 로그인이 되지 않았을 때 유저객체를 모델에 연결하지 못해 발생하는 에러이다.
+
이 에러는 로그인이 되지 않았을 때 유저객체를 모델에 연결하지 못해 발생하는 에러이다. 글쓰기 전에 로그인을 하게 하는 등의 전략으로 방지할 수 있다.
 
[[분류:장고 기능구현(초급)]]
 
[[분류:장고 기능구현(초급)]]

둘러보기 메뉴