url cof , view
request가 들어 왔을때 url configration이 url을 보고 분석을 하고 사용자가 원하는 기능을 view에서 찾는다 mvc가 아닌 mvt를 사용함으로 view는 로직을 이야기한다.즉 controller역할을 하게된다 이때 index()를 호출할건데 index()역할은 로직처리를 한 다음client에게 보여줄 화면을 만드는데 templete을 주워서 data를 덧씌워서 최종결과화면(rendering)을 만든다 즉 1.url confing가 request 분석후 view에서 index()함수 호출 2.index()가 로직처리후 template에 있는 index.html을 들어서 rendering결과 만들어 돌려준다 -url 과 view의 mapping 작업 0. views를 가져오기 위해 상단..
2021.07.22