Django框架——报错
mysql时区问题:
命令修改:
set global time_zone='+8:00'
参考博客:
https://blog.csdn.net/iteye_4185/article/details/82523855
修改配置文件:
default-time-zone = '+8:00'
django框架错误:
django.db.utils.IntegrityError: (1452, 'Cannot add or update a child row: a foreign key constraint fails (db1
.app01_author
, CONSTRAINT app01_author_author_date_id_38cd4559_fk_app01_authordate_id
FOREIGN KEY (author_date_id
) REFERENCES app01_authordate
(id
))')
参考博客: