1. bootstrap 다운로드

구글링 구글

2. 적용하기

1. index.html 옮기기

blog/template/blog/ 폴더 안에 넣는다.

2. 템플릿 사용 설정

blog/views.py 수정

def post_list(request):
    posts = Post.objects.filter(published_date__lte=timezone.now()).order_by('published_date')
    return render(request, "blog/index.html", {'posts': posts})

render 메서드가 blog/post_list.html 템플릿 보여줌

  • js : 안에 있는 자료 나옴 그래프 같은거. database랑 연결되는 듯
  • vendor : 작은 아이콘 같은 것 생김
  • css : 전체적인 템플릿

이거 세개를 static에 넣어줌. index.html 안에 경로 수정해야함

3. video 넣기

static 폴더 안에 video 넣어야 함

  • div : div태그는 Division의 약자로 웹사이트의 레이아웃(전체적인 틀)을 만들때 주로 사용