### 위치 이동
cd /Users/user/test/django/project/web/bookmark
### templates 디렉토리 생성
mkdir -p templates/bookmark/
### 위치 이동
cd /Users/user/test/django/project/web/bookmark/templates/bookmark
vi bookmark_list.html
---
<!DOCTYPE html>
<html>
<head>
<tile>Django Bookmark List</title>
</head>
<body>
<div id="content">
<h1>Bookmark List</h1>
<ul>
{% for bookmark in object_list %}
<li><a href="{% url 'detail' bookmark.id %}">{{ bookmark }}</a></li>
{% endfor %}
</ul>
</div>
</body>
</html>

(% for bookmark in object_list %)
{{ bookmark }} 변수
Bookmark 테이블의 특정 레코드 하나를 의미
즉, 특정 Bookmark 객체를 의미하는 것이며 해당 객체를 프린트하게 되면 해당 객체의 str() 메소드를 호출하여 그 결과를 출력 ( models.py 에서 객체의 title을 반환하도록 str() 메소드를 작성했음 )

변경 가능
bookmark_list 에서 특정 북마크를 클릭하면, 해당 북마크에 대한 상세 정보를 보여주는 템플릿 작성
### 위치 이동
cd /Users/user/test/django/project/web/bookmark/templates/bookmark
vi bookmark_detail.html
---
<!DOCTYPE html>
<html>
<head>
<title>Django Bookmark Detail</title>
</head>
<body>
<div id="content">
<h1>{{ object.title }} </h1>
<ul>
<li>URL: <a href="{{ object.url }}">{{ object.url }}</a></li>
</ul>
</div>
</body>
</html>
참고 자료