python 3.5 json转 字典 参数里面有有数据为字典没数据是list
mysql
该怎么处理啊 调用的是接口json转数据
求解决方案,
我用xxx.object.create(tags_vote=xxx['tags_vote'])
插入报错
tags_vote为空是个list导致存入mysql出错怎么把他转换为null 或者存入
TypeError at /data/shuju/
expected string or bytes-like object
Request Method: GET
Request URL: http://127.0.0.1:8000/data/sh...
Django Version: 1.9
Exception Type: TypeError
Exception Value:
expected string or bytes-like object
Exception Location: C:UsersAdministratorAppDataLocalProgramsPythonPython35libsite-packagesdjangoutilsdateparse.py in parse_datetime, line 93
Python Executable: C:UsersAdministratorAppDataLocalProgramsPythonPython35python.exe
Python Version: 3.5.2
Python Path:
['E:\workspace\v5kf',
'C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\django-1.10.6-py3.5.egg',
'E:\workspace\v5kf',
'C:\Users\Administrator\AppData\Local\Programs\Python\Python35\python35.zip',
'C:\Users\Administrator\AppData\Local\Programs\Python\Python35\DLLs',
'C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib',
'C:\Users\Administrator\AppData\Local\Programs\Python\Python35',
'C:\Users\Administrator\AppData\Roaming\Python\Python35\site-packages',
'C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages']
Server time: Fri, 14 Jul 2017 11:11:42 +0800