๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿ’ชBackend/Django

Django๋กœ Pinterest ๋”ฐ๋ผ๋งŒ๋“ค๊ธฐ : ์„น์…˜ 1. Django Tutorial (19 ~ 20๊ฐ•)

#19 Pycharm ๋””๋ฒ„๊น… ์„ค์ •

๋ฌธ์ œ๊ฐ€ ์žˆ๊ฑฐ๋‚˜ ํ• ๋•Œ ์–ด๋””๊ฐ€ ์–ด๋–ป๊ฒŒ ์ž˜๋ชป๋˜์—ˆ๋Š”์ง€ ํ™•์ธํ•˜๊ธฐ ์œ„ํ•œ ๋””๋ฒ„๊น…์ด ํ•„์š”

์ด๋ฅผ ์œ„ํ•œ ๋””๋ฒ„๊น… ์„ค์ •

 

์ง€๊ธˆ ์–ด๋–ค ๊ฐ’์„ ๊ฐ€์ง€๊ณ  ์žˆ๋Š”์ง€ ํ™•์ธ ๊ฐ€๋Šฅ

๊ทธ๋ƒฅ POST๋งŒ ๋ฒ„ํŠผ๋งŒ ๋ˆ„๋ฅธ ํ›„, temp ์—๋Š” ์•„๋ฌด ๊ฐ’ ์•ˆ๋“ค์–ด์žˆ์Œ!!

 

 


 

#20 Django์˜ CRUD, Class Based View ์†Œ๊ฐœ

์ธ์ฆ ์‹œ์Šคํ…œ์„ ์ด์šฉํ•ด์„œ ์ธ์ฆ๋œ ์‚ฌ๋žŒ๋งŒ ํ†ต์‹ ํ•  ์ˆ˜ ์žˆ๋„๋ก

 

 

Signup = Create

View info = Read

Change info = Update

Quit = Delete

 

์žฅ๊ณ ๊ฐ€ CRUD์— ์œ ์šฉ

ํฌ๋ฃจ๋“œ๋กœ ์œ ๋ช…ํ•œ ์ด์œ ?

์ฟ ๋ฅด๋“œ์— ๋Œ€ํ•œ view๋ฅผ ๋”ฐ๋กœ ์ œ๊ณต!! (class based view)

 

๋ฐ˜๋Œ€๋กœ function-based view

→ ํ•จ์ˆ˜ ๊ธฐ๋ฐ˜์˜ view, ์ง์ ‘ ์ž‘์„ฑํ•˜๋Š” ~… ๋„ˆ๋ฌด ๊ธธ์–ด์ง. ๊ฐ€๋…์„ฑ ๋–จ์–ด์ง

์ด๋Ÿฐ์‹์œผ๋กœ ์ƒ์†๋ฐ›์•„์„œ ์ž‘์„ฑํ•˜์ž!

 

 

์–ด๋–ค ๋ชจ๋ธ์„ ์‚ฌ์šฉํ• ๊ฑด์ง€, ๊ทธ๋•Œ ํ•„์š”ํ•œ form์€ ๋ฌด์—‡์ธ์ง€, ์–ด๋Š ๊ฒฝ๋กœ๋กœ ๋Œ์•„๊ฐˆ ๊ฒƒ์ธ์ง€ ๋“ฑ ์ฃผ์š” ํŒŒ๋ผ๋ฏธํ„ฐ๋งŒ ์•Œ๋ ค์ฃผ๋ฉด ์ƒ์†๋œ ๋ทฐ์—์„œ ๋‚ด๋ถ€์ ์œผ๋กœ ์ฒ˜๋ฆฌ๋จ

 

์ƒ์‚ฐ์„ฑ & ๊ฐ€๋…์„ฑ ํ–ฅ์ƒ, ๋ณต์žก์„ฑ&์ฝ”๋“œ ์ž‘์„ฑ ์‹œ๊ฐ„ ์ค„์–ด๋“ฌ

 

๊ฑฐ์˜ ๋ชจ๋“  ์ž‘์—…๋“ค์ด ์œ„์˜ 4๊ฐ€์ง€ view์•ˆ์— ํ•ด๋‹นํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์ด๋ฅผ ์ ๊ทน์ ์œผ๋กœ ํ™œ์šฉํ•˜๊ธฐ

 


 

๋ฐ•ํ™์„๋‹˜์˜ ์ธํ”„๋Ÿฐ ๊ฐ•์˜๋ฅผ ์ˆ˜๊ฐ•ํ•˜๋ฉฐ ์ •๋ฆฌํ•ด๋ณด๋Š” ๊ธ€์ž…๋‹ˆ๋‹ค.

https://www.inflearn.com/course/%EC%9E%A5%EA%B3%A0-%ED%95%80%ED%84%B0%EB%A0%88%EC%8A%A4%ED%8A%B8

 

์ž‘์ •ํ•˜๊ณ  ์žฅ๊ณ ! Django๋กœ Pinterest ๋”ฐ๋ผ๋งŒ๋“ค๊ธฐ : ๋ฐ”๋‹ฅ๋ถ€ํ„ฐ ๋ฐฐํฌ๊นŒ์ง€ ๊ฐ•์˜ - ์ธํ”„๋Ÿฐ

Python์˜ ๋Œ€ํ‘œ ์›น ํ”„๋ ˆ์ž„์›Œํฌ django๋ฅผ ์ด์šฉํ•ด Pinterest ํŠน์œ ์˜ ์นด๋“œํ˜• ๋ ˆ์ด์•„์›ƒ ๋””์ž์ธ์„ ๋ณธ๋”ด ์›น์„œ๋น„์Šค ๊ตฌํ˜„ํ•ด๋ด…๋‹ˆ๋‹ค., django, docker ์‹ค์ „ ๊ฐœ๋ฐœ์„ ํ†ตํ•ด ํ•œ ๋‹จ๊ณ„ ๋†’์€ ๊ฐœ๋ฐœ์ž๊ฐ€ ๋˜