On 24/04/2018 8:57 AM, Anthony Flury wrote:
> You can use manage.py dumpdata and manage.py loaddata
>
> And you can do this per app - or even per table.
Thank you Anthony
I had totally forgotten that. In fact I actually script dumpdata for
dumping test data (ie fixtures) but loaddata never worked for me. So
much so that I was easily able to expunge it from my overloaded
brainspace :)
Cheers
Mike
>
> The challenge is if your production server already has data in it, and
> uses Auto Incrementing Ids, then the ids from the development wont be
> valid in the production server.
>
> You also have the challenge that your data-base might not allow you to
> Insert values into a field which is meant to be based on an
> incrementing sequence.
>
> --
> Tony