You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
kondou 3c0ddd31d6 Fix bugs and abandon this – loaddata already does this D: 5 years ago
loaddata_incremental Fix bugs and abandon this – loaddata already does this D: 5 years ago
.gitignore Add some more info and use find_packages() in setup.py 5 years ago
LICENSE Initial commit with everything in it 5 years ago
MANIFEST.in Add MANIFEST and fix command not showing in manage.py 5 years ago
README.md Initial commit with everything in it 5 years ago
setup.cfg Initial commit with everything in it 5 years ago
setup.py Fix #1 5 years ago

README.md

Django Loaddata Incremental

Ever had that problem, that you changed one tiny thing in your Django dummy data fixtures but had to reload your whole DB afterwards, because fixtures don't apply if there's already data in the DB? No? Well I do all the time.

This plugin adds a simple management.py task, namely loaddata_incremental, that - as the name suggests - loads fixtures just like the builtin command, but does so incrementaly.

For documentation on fixtures and the loaddata command itself you best consider the official django documentation for respective things.

This plugin only accepts JSON input (for now).


Installation is easy. Just add loaddata_incremental to you INSTALLED_APPS and you're done.