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 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
>>
>> 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 probably the best time.
>>
>>
>> Is there any drawback to flushing the database and removing the 
>> migrations files 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/41d52cbe-abbb-4e39-8d2c-14331178449c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to