0%

django总结

1.7版本以上重新创建表
https://blog.csdn.net/hanglinux/article/details/75645756

{
"detail": "'staticfiles' is not a registered tag library. Must be one of:\nadmin_list\nadmin_modify\nadmin_static\nadmin_urls\ncache\nfuture\ni18n\nl10n\nlog\nrest_framework\nstatic\ntz"
}
不要用Response ,用 JsonReponse

{"detail": " is not JSON serializable"}
dict或list里包含了 Objcet 类型的数据

中文需要指定字符集
    idc_node_list = [u'运维审批']
    task_list = [u'运维审批', u'啊啊水电费']
    idc_node = list(set(idc_node_list).intersection(set(task_list)))