Not work variables in django templates
Posted
by
??????? ???????
on Stack Overflow
See other posts from Stack Overflow
or by ??????? ???????
Published on 2012-10-24T22:56:50Z
Indexed on
2012/10/24
23:00 UTC
Read the original article
Hit count: 257
My context dictionary not sending to my templates. I have function
from django.shortcuts import render_to_response
def home(request):
return render_to_response('home.html',{'test':'test'})
and i have simple template such as:
<html>
<body>
my test == {{test}}
</body>
</html>
When i open my site in browser, i have "my test == ". settings.py is default. I dont use something custom. What the problem? Server is apache with wsgi module.
© Stack Overflow or respective owner