🧩

001 MTV

Β 
Video preview
Β 
ν•œ λ‚¨μžκ°€ μžˆμŠ΅λ‹ˆλ‹€. 이 λ‚¨μžλŠ” 고양이λ₯Ό μ’‹μ•„ν•©λ‹ˆλ‹€.
Β 
notion imagenotion image
Β 
고양이λ₯Ό μ’‹μ•„ν•˜λ‹€ λ³΄λ‹ˆκΉŒ μ—¬λŸ¬ κ΄€λ ¨λœ 정보듀을 μ°Ύμ•„λ³΄κ²Œ λ˜μ—ˆμŠ΅λ‹ˆλ‹€. 이 세상 거의 λͺ¨λ“  μ •λ³΄λŠ” λ°μ΄ν„°λ² μ΄μŠ€ 즉, DBμ•ˆμ— μœ„μΉ˜ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€.
Β 
notion imagenotion image
Β 
이 DB와 고양이 μ§‘μ‚¬λ‹˜μ΄ μ›ν™œν•˜κ²Œ μ†Œν†΅ν•  수 있게 ν•΄μ£ΌλŠ” 것이 λ°”λ‘œ Django라고 λ³΄μ‹œλ©΄ λ©λ‹ˆλ‹€. λ¬Όλ‘  Django만 μžˆλŠ” 것은 μ•„λ‹™λ‹ˆλ‹€.
Β 
notion imagenotion image
Β 
고양이 μ§‘μ‚¬λ‹˜μ΄ 고양이 κ΄€λ ¨λœ 정보λ₯Ό κ²€μƒ‰ν•˜κ²Œ λ©λ‹ˆλ‹€. μ²˜μŒμ— 접속할 λ•Œ, URL μž…λ ₯ν•΄μ„œ 접속을 ν•˜κ²Œ λ©λ‹ˆλ‹€.
Β 
notion imagenotion image
Β 
μ‚¬μš©μžμ—κ²Œ 받은 μš”μ²­μ„ λ·°μ—μ„œ ν™•μΈν•©λ‹ˆλ‹€.
Β 
notion imagenotion image
λ·°μ—μ„œ λͺ¨λΈμ„ ν†΅ν•΄μ„œ λ°μ΄ν„°λ² μ΄μŠ€μ™€ μƒν˜Έμž‘μš©μ„ ν•˜λ©΄μ„œ 정보λ₯Ό μš”μ²­ν•©λ‹ˆλ‹€.
Β 
notion imagenotion image
받은 정보λ₯Ό ν…œν”Œλ¦Ώμ— μ €μž₯을 ν•΄μ„œ λ‹€μ‹œ μ‚¬μš©μžμ—κ²Œ 돌렀주게 λ©λ‹ˆλ‹€.
Β 
notion imagenotion image
Β 
이 일련의 과정이 μž₯κ³ (Django) μ•ˆμ—μ„œ μˆœμ‹κ°„μ— λ²Œμ–΄μ§€κ²Œ λ˜λŠ” κ²ƒμž…λ‹ˆλ‹€.
notion imagenotion image
Β 
쑰금 더 깊게 듀어가보면 μ‚¬μš©μžκ°€ λ·°μ—κ²Œ μš”μ²­μ„ ν•˜λŠ” 것을 request, 뷰와 λͺ¨λΈμ΄ ν†΅μ‹ ν•˜λŠ” 것을 λͺ¨λΈ CRUD라고 μ΄μ•ΌκΈ°ν•©λ‹ˆλ‹€.
notion imagenotion image
Β 
CRUDλŠ” μΌμ’…μ˜ ν–‰μœ„μž…λ‹ˆλ‹€. create with μƒμ„±ν•˜κ³  κ²€μƒ‰ν•˜κ³  μˆ˜μ •ν•˜κ³  μ‚­μ œν•˜λŠ” ν–‰μœ„, μ›Ή μ‚¬μ΄νŠΈμ—μ„œ λ²Œμ–΄μ§€λŠ” λͺ¨λ“  λ™μž‘ 원리라고 λ³΄μ‹œλ©΄ λ©λ‹ˆλ‹€.
Β 
notion imagenotion image
DjangoλŠ” λͺ¨λΈκ³Ό λ°μ΄ν„°λ² μ΄μŠ€κ°€ 톡신할 λ•Œ ORM 방식을 μ‚¬μš©ν•˜κ²Œ λ©λ‹ˆλ‹€.
Β 
notion imagenotion image
Β 
그리고 ν…œν”Œλ¦Ώ λžœλ”λ§μ„ ν†΅ν•΄μ„œ ν…œν”Œλ¦Ώμ— μ €μž₯을 ν•©λ‹ˆλ‹€.
Β 
notion imagenotion image
Β 
μ΅œμ’…μ μœΌλ‘œ response λΌκ³ ν•΄μ„œ μ‚¬μš©μžμ—κ²Œ 정보λ₯Ό λ³΄μ—¬μ£Όκ²Œ λ©λ‹ˆλ‹€.
Β 
notion imagenotion image
Β 
이 전체 과정을 개발 νŒ¨ν„΄ MTV라고 λΆ€λ¦…λ‹ˆλ‹€. 끝날 λ•Œ μ―€μ—λŠ” 이 λ‚΄μš©μ΄ 훨씬 더 μ™€λ‹Ώκ²Œ 될 κ²ƒμž…λ‹ˆλ‹€.
Β 
notion imagenotion image
Β 
μž₯κ³ (Django)의 MTV의 핡심은 λ°μ΄ν„°μ˜ μžμ—°μŠ€λŸ¬μš΄ νλ¦„μž…λ‹ˆλ‹€.
Β