Re: Error passing data from views to template

2013-02-18 Thread Tiago Carvalho
Thank you very much both (Jason and psjinx). It resolved my problem. This was my first post in this Django users group. Nice to see that Django has such a helpfull community users. On Monday, February 18, 2013 5:25:53 PM UTC, Jason Arnst-Goodrich wrote: > > return render_to_response('home/abo

Re: Error passing data from views to template

2013-02-18 Thread Jason Arnst-Goodrich
return render_to_response('home/about.html', data, 'context_instance=RequestContext(request)') Change that to: return render_to_response('home/about.html', data, context_instance=RequestContext(request)) The context_instance is an optional keyword argument. Right now you're passing it as a po

Re: Error passing data from views to template

2013-02-18 Thread Pankaj Singh
Hey Tiago, > Exception Value: 'str' object has no attribute 'update' It means that context_instance variable passed to render_to_string() is of str type. context_instance needs to be an instance of django.template.context.Context class. Example use of render_to_string - from django.template.l

Error passing data from views to template

2013-02-17 Thread Tiago Carvalho
Hello, I'm new to Django and I'm with an error, passing data from views to templates. Here is the traceback: http://dpaste.com/942117/ Request URL: http://localhost:8000/about/ Django Version: 1.4.3 Exception Type: AttributeError *Exception Value: 'str' object has no attribute 'update'* Excepti