Django template-printing variables
Posted
by Hulk
on Stack Overflow
See other posts from Stack Overflow
or by Hulk
Published on 2010-03-25T06:14:15Z
Indexed on
2010/03/25
6:23 UTC
Read the original article
Hit count: 533
In django views
def add(request):
dict{}
co_data = optarr
dict.update({'co_data' : co_data})
logging.debug(co_data)
return render_to_response('scheme/create.html',context_instance=RequestContext(request,{'dict': dict}))
And data has the following string 1##2##3##4##
And in the template when i say {{co_data}}
it doesnt display the values.Please point out whats wrong in the code.
Thanks..
© Stack Overflow or respective owner