Django报错TypeError join() argument must be str or bytes, not 'dict'如何解决?

Django报错TypeError  join() argument must be str or bytes, not 'dict'如何解决?

问题描述:

如题,在调试Django时报错,不知哪里出了问题,求大佬解答

TypeError

Exception Value:
join() argument must be str or bytes, not 'dict'

这个是你在join()里面传的参数类型不对,需要传的是字符串,结果你传了object({a:a,b:b})这种,所以会报错。