如题,在调试Django时报错,不知哪里出了问题,求大佬解答
TypeError
Exception Value:
join() argument must be str or bytes, not 'dict'
这个是你在join()里面传的参数类型不对,需要传的是字符串,结果你传了object({a:a,b:b})这种,所以会报错。
可以看一下render(request,'x.html',{'xxx':xxx})第三个参数是不是字典。我的问题是render_to_response改成render后,没加request导致的。