問題は、テンプレートの価値を得ることができないことです。
Views.py:
from django.shortcuts import get_object_or_404, render_to_response
from django.httpimport HttpResponse
def index(request):
c='hi'
return render_to_response('list.html', c)
list.html:
{% extends "base.html" %}
{% block content %}
list{{ c }}
{% endblock %}
レンダリングされますが、これを引き起こす可能性のあるものはありlist
ません{{ c }}
か?そして、それはエラーを与えません。