Django template-printing variables
- by Hulk
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..