-
7 votesanswersviews
具有激活时区支持的Django项目中用于南迁移的DateTimeField的默认值
我正在为我的Django 1.4.3项目创建一个使用South 0.7.6的模式迁移,并启用了时区支持 . 架构迁移包括在一个表上添加 DateTimeField (带 auto_now=True ) . 在创建迁移时,South提示我: The field 'MyTable.my_field' does not have a default specified, yet is NOT NULL....