Re: Drawback of delete all migrations file

2016-12-09 Thread Sylvain Dégué
NVM i read loaddata documentation Le vendredi 9 décembre 2016 19:49:50 UTC-5, Sylvain Dégué a écrit : > > Thanks guy!!But how do I reload the my previous data to the new database > if the model changed?? > > Le vendredi 9 décembre 2016 13:39:50 UTC-5, Sylvain Dégué a écrit : >> >> Im about to

Re: Drawback of delete all migrations file

2016-12-09 Thread Sylvain Dégué
Thanks guy!!But how do I reload the my previous data to the new database if the model changed?? Le vendredi 9 décembre 2016 13:39:50 UTC-5, Sylvain Dégué a écrit : > > Im about to lauch a project that uses django for the api. So im only using > the admin side for now. Ive been having problem

Re: Drawback of delete all migrations file

2016-12-09 Thread 'Abraham Varricatt' via Django users
Hello Sylvain, I think you have two concerns here, On Friday, December 9, 2016 at 1:39:50 PM UTC-5, Sylvain Dégué wrote: > SO im thinking about reset completly my production database and remove all > the migrations to start fresh. I dont have much data in the production > database so its

RE: Drawback of delete all migrations file

2016-12-09 Thread Matthew Pava
[mailto:django-users@googlegroups.com] On Behalf Of Sylvain Dégué Sent: Friday, December 9, 2016 12:40 PM To: Django users Subject: Drawback of delete all migrations file Im about to lauch a project that uses django for the api. So im only using the admin side for now. Ive been having problem concerning

Drawback of delete all migrations file

2016-12-09 Thread Sylvain Dégué
Im about to lauch a project that uses django for the api. So im only using the admin side for now. Ive been having problem concerning the database and forms. Ive made many mistake while updating the database, when certain field didnt allow null. It caused IntegrityError, which I was able to fix