Python Django: Load Autofield to MySql Table using loaddata -


i have model 2 datefield - fields in it, dumped json using dumpdata. want load fixtures (i using south) mysql-database leads following error:

commanderror: database backend not accept 0 value autofield.

does know problem , solution it?

my database mysql (version 5.6.12) , i'm using django 1.5.1. used sqlite before , want change mysql.

found solution - had use dumpdata app.model --natural


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -