Render1 [Python Django] The Practical Guide - Data & Models (2) {% extends "book_outlet/base.html" %}{% block title %} All Books{% endblock %}{% block content %} {% for book in books %} {{ book.title }} (Rating: {{ book.rating }}) {% endfor %} {% endblock %}index.html from django.shortcuts import get_object_or_404, renderfrom django.http import Http404from .models import Book# Create your views here.def index(request): .. 2025. 7. 22. 이전 1 다음