django에서 'UNIQUE 제약 조건 실패' 404를 잡는 방법

2022. 12. 12. 21:29django

python - django에서 'UNIQUE 제약 조건 실패'404를 잡는 방법 (stackoverflow.com)

 

how to catch A 'UNIQUE constraint failed' 404 in django

How do I specifically catch a UNIQUE constraint failed 404 in the following code, I know I have to add something in the ( here? ) section try: q = AnswerModel(user=user, yes_question=question_...

stackoverflow.com

 

'django' 카테고리의 다른 글

Database 네이밍 룰  (0) 2022.12.13
QuerySet API  (0) 2022.12.12
django 날짜 가져오기  (0) 2022.12.12
djang db to excel download  (0) 2022.12.09
Nginx 명령어 모음  (0) 2022.12.09