본문 바로가기

분류 전체보기

(148)
TIL 080923 보호되어 있는 글입니다.
TIL 080823 Q: AWS를 통해 배포할 경우, sqlite를 사용하지 않는 이유는 무엇입니까? A: https://stitchcoding.tistory.com/9 SQLite은 언제 사용하면 좋을까? SQL이라는 존재 자체를 처음 접한 건 데잇걸즈 수업을 통해서였다. pandas로 csv 파일만 읽고 쓰던 작업을 하던 중에 잠시 맛보기처럼 배웠는데, 실무에서 많이 쓰인다는 건 조금 나중에 알게 되었 stitchcoding.tistory.com https://www.sqlite.org/whentouse.html Appropriate Uses For SQLite Embedded devices and the internet of things Because an SQLite database requires no admini..
TIL 080723 Q: Django는 어떤 종류의 데이터베이스를 사용합니까? Flask와의 차이는 무엇입니까? A: What database does Django use? The three most widely used Database Management Systems for Django are SQLite, MySQL, and PostgreSQL. The Django community and official Django documentation state PostgreSQL as the preferred database for Django Web Apps. https://www.nickmccullum.com/best-database-django-web-apps/ The Best Database for Django Web..
TIL 080423 보호되어 있는 글입니다.
TIL 080323 Q: Serializer에서 Custom Validation을 하는 이유는 무엇입니까? A: Validation in REST framework DRF에서 serializer의 벨리데이션은 Django의 ModelForm 클래스에서 벨리데이션이 작동하는 방식과 약간 다르게 처리됩니다. ModelForm을 사용하면 벨리데이션 폼에서 부분적(partial)으로 실행되고 모델 인스턴스에서 부분적으로 수행됩니다. DRF를 사용하면 벨리데이션이 전적으로 serializer클래스에서 수행됩니다. 이는 다음과 같은 이유로 유리합니다. 문제를 적절하게 분리하여 코드 동작을 보다 명확하게 만듭니다. shortcut ModelSerializer 클래스 사용과 명시적 Serializer 클래스 사용 사이를 쉽게 전환할 수 ..
TIL 080223 Q: DRF Q기능을 통해서 쿼리하는 것은 어떤 장점이 있습니까? A: What’s the benefit of using a Q object? Using Q objects we can make complex queries with less and simple code. https://micropyramid.com/blog/querying-with-django-q-objects Querying with Django Q objects - MicroPyramid Querying with Django Q objects to make complex queries with simple and less code micropyramid.com https://velog.io/@stresszero/Django-Q-%EA%..
TIL 080123 보호되어 있는 글입니다.
TIL 073123 보호되어 있는 글입니다.