CRUD

๊น€ํ•œ์ค€ยท2021๋…„ 6์›” 26์ผ
0

๐Ÿš€ Client <--> Server <--> Database

๐Ÿ“Cleint <--> Server

https://velog.io/@hanjoon_10/HTTP

๐Ÿ“Server <--> Database

1. models.py
2. views.py
3. urls.py
  • model.spy
    Client์˜ ์š”์ฒญ
    ๋ฐ์ดํ„ฐ๋ฅผ HTTP body์— ๋‹ด์•„์„œ HTTP Method ์š”์ฒญ์„ ๋ณด๋‚ธ๋‹ค

  • views.py
    views.py(classํ˜•) or views.py(ํ•จ์ˆ˜ํ˜•)
    classํ˜• view๋ฅผ ์ด์šฉํ•ด์„œ HTTP Method ์š”์ฒญ์„ ์ฒ˜๋ฆฌํ•œ๊ณ  DATABSE ํ…Œ์ด๋ธ”์— ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•œ ๋‹ค์Œ ๊ฒฐ๊ณผ๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค

  • urls.py
    HTTP Method ์š”์ฒญ์— ํฌํ•จ๋œ body์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ๊บผ๋‚ด์˜จ๋‹ค

๐Ÿ”ฅ ์ž‘์„ฑํ•˜๊ธฐ์ „ ๋ฌธ์žฅ์œผ๋กœ ์ •๋ฆฌ๋ฅผ ํ•˜๋Š”๊ฒŒ ์ข‹๋‹ค!
๐Ÿ”ฅ ์ˆœ์„œ๋Š” models, views, urls ์ˆœ์„œ

0๊ฐœ์˜ ๋Œ“๊ธ€