- django-admin startproject cakd_django . -> (프로젝트 생성 : startproject)
- python mange.py createsuperuser
- conda activate cakd_django
- python manage.py makemigrations (모델 변경 사항 추출)
- python manage.py migrate ( DB 만들어줌, User/Group 테이블 생성 : migrate)
- python manage.py runserver (테이블 모습 확인)
<body>
<h1>Blog</h1>
{% for p in post_list %}
<hr>
<h2><a href="{{p.get_absolute_url}}">{{p.title}}</a></h2>
<h4>{{p.created_at}}</h4>
<p>{{p.content}}</p>
{% endfor %}
</body>
참고 : https://docs.djangoproject.com/en/3.2/ref/templates/builtins/
https://velog.io/@jewon119/Django-%EA%B8%B0%EC%B4%88-Template-Language
CRLF와 LF차이의 이해