Sending variable to template in Django
Не выводит переменную на шаблоне (результат только "Hi "... без переменной). Все перелазил, никак не пойму в чем проблема.
view.py
from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
name = 'Jim'
return render(request, 'index.html', {'loh': name})
index.html
<h1> Hi {{loh}} </h1>