What would be the correct statements for the below two.I want to send the base variable to my template which keeps varying but there will be an error if i send {'form': form,'msg' : msg}
in the second statement
return render_to_response('chatlist/newchat.html', context_instance=RequestContext(request,{'form': form,'msg' : msg}),extra_context = { "base": "base/chatbase.html" })
or
return object_list(request,{'form': form,'msg' : msg}, template_name='chatlist/newchat.html',extra_context = { "base": "base/chatbase.html" } )