> > > The bug is in this line. render_to_response() takes a dictionary as the > context_instance, but this code just passes the request instance. > > You probably meant either: > > return render_to_response(template_name, locals(), > context_instance=(request, )) # Note comma > > or > > return render_to_response(template_name, locals(), > context_instance={'request':request})) > > HTH, > > Malcolm > > > Hi Malcolm,
already try your reccomendation, but still got error. and i check with other view in the apps, i found out you are right, the bug is in the render_to_response. i fix it with this one : return render_to_response(template_name, locals(),context_instance=RequestContext(request)) i miss the RequestContext(request)) This one think which pass all the context processed variable to the template. Thanks, and i learn now how to read error message and track it down now.. It solved now.. continue to learning... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.