Django

황연준·2024년 7월 4일
post-thumbnail

Django 흐름

models.py에
__str__ 을 추가하는 이유 : admin 화면에서 해당 데이터를 보여줌. (선택할 때 잘 구분짓기 위해서)

blank true 이유 - admin에 추가할 때 error 방지

drf -> django rest framework

프레임워크와 라이브러리 차이
https://sharonprogress.tistory.com/169

import all 하지 않는 이유 : pythonic code 이기 위해

0개의 댓글