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 lau

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 con

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 proba

RE: Drawback of delete all migrations file

2016-12-09 Thread Matthew Pava
If you made any of your customizations to the migrations files, then you will lose that information. You may want to consider using Django’s dumpdata management command to save all the data on your production database (and loaddata to restore it). https://docs.djangoproject.com/en/1.10/ref/djang