//myapp/bbs/views.py from django.shortcuts import render from django.http import HttpResponse def index(request): context = { 'message': 'Welcome my BBS', 'players': ['勇者', '戦士', '魔法使い', '忍者'] } return render(request, 'bbs/index.html', context) //myapp/bbs/templates/bbs/index.html !DOCTYPE html> html> head> meta charset='utf-8'> title>bbs/title> /head> body> h1>bbs/h1> p>{{ message }}/p> {% for player in players %} p>{{ player }}はモンスターと戦った/p> {% endfor %} /body> /html> python manage.py runserver //ブラウザ http://localhost:8000/bbs