각 장고 앱 안에 기본적으로 생성되는 models.py 모듈 안에 정의할 수 있고, models.py모듈 안에 하나 이상의 모델 클래스를 정의할 수 있다.
하나의 모델 클래스 == 데이터베이스의 하나의 테이블
모델 클래스는 필드를 정의하기 위해 클래스 변수를 사용하는데, 필드를 정의하는 이 클래스는 변수는 각 필드타입에 맞는 Field 클래스 객체를 생성하여 할당한다.

https://velog.io/@qlgks1/Django-Model-%ED%95%84%EB%93%9Cfiled-%EB%AA%A8%EC%9D%8C%EC%A7%91#charfield
 필드 타입 클래스 이외에 테이블 간 혹은 필드 간 관계(Relationship)을 표현하기 위해 ForeignKey, ManyToManyField, OneToOneField 클래스를 사용할 수도 있다. 특히 ForeignKey는 모델 클래스간 Many-To-One (혹은 One-To-Many) 관계를 표현하기 위해 흔히 사용된다.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <script>
        var state = ["block", "none"];
        var i=0;
        var j=1;
        function change(){
            if(i>=state.length){
                i=0;
             }
           var b = document.getElementById("good");
           b.style.display=state[i];
            i++;
           var d = document.getElementById("bad");
           d.style.display=state[j];
           j--
           if(j<0){
               j=1;
           }
       }
    </script>
</head>
<body>
    <button style="display: block" onclick="change();" id="bad">
        <i class="fa fa-thumbs-o-up" aria-hidden="true">
            좋아요
        </i>
    </button>
    <button style="display: none" onclick="change();" id="good">
        <i class="fa fa-thumbs-up" aria-hidden="true">
            좋아요
        </i>
    </button>
</body>
</html>
<form action="" method="post">
다음줄에 {% csrf_token %} 을 추가해주었어야 했는데 안했다..ㅎㅎㅎ
https://pram.tistory.com/entry/django-%EC%9E%A5%EA%B3%A0%EC%97%90%EB%9F%AC-CSRF-verification-failed-Request-aborted
<div class="row row-cols-1 row-cols-md-3 g-4">
  <div class="col">
    <div class="card">
      <img src="..." class="card-img-top" alt="...">
      <div class="card-body">
        <h5 class="card-title">Card title</h5>
        <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
      </div>
    </div>
  </div>
  <div class="col">
    <div class="card">
      <img src="..." class="card-img-top" alt="...">
      <div class="card-body">
        <h5 class="card-title">Card title</h5>
        <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
      </div>
    </div>
  </div>
  <div class="col">
    <div class="card">
      <img src="..." class="card-img-top" alt="...">
      <div class="card-body">
        <h5 class="card-title">Card title</h5>
        <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content.</p>
      </div>
    </div>
  </div>
  <div class="col">
    <div class="card">
      <img src="..." class="card-img-top" alt="...">
      <div class="card-body">
        <h5 class="card-title">Card title</h5>
        <p class="card-text">This is a longer card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.</p>
      </div>
    </div>
  </div>
</div>
https://cholol.tistory.com/545?category=739855
https://wonpaper.tistory.com/223
💜 오늘 느끼고 배운 점
하루종일 : 프로젝트
이제 프론트 엔드를 거의 다 만들고 벡엔드를 들어가고 있다. 시작 단추를 사알짝 잘못 끼워서 진도가 좀 늦지만 남은 이틀동안 매진해서 만들면 완성할 수 있을 것 같다. 남은 기간동안 화이팅!!!!!!!!!!!!!