djangosnippets.org: Latest snippets tagged with 'synchronise'https://djangosnippets.org/tags/synchronise/2008-07-29T18:02:57.781718-05:00syncdata command
2008-07-29T18:02:57.781718-05:00grahamhttps://djangosnippets.org/snippets/926/<p>A django admin command that takes a fixture and makes the target database the same as that fixture, deleting objects that in the database but not in the fixture, updating objects that are different in the database, and inserting missing ones.
Place this code in your_app/management/commands/syncdata.py
You will need to …</p>
Freely redistributable