Wednesday, March 23, 2016

Approaches for sharing development fixtures across teams

Hi,

We have been struggling with sharing development fixtures between each other. Keeping media files, and db in sync has been problematic for us. We started by just storing zip files containing media files directory, and a pg_dump of the database. Fine. But then we started to swap branches, db got out of sync, swapping/changing/deleting migrations in feature branches due to changing in models, etc etc...

I ended up writing a management, that relies on that git, and a set of other tools are installed. It includes auto detection when restoring fixtures, and of course dev fixtures with tagged commit ids.

Does anyone else have other approaches? Other packages around?

The first release, that is working well for us right now, can be found here: https://github.com/dolphinkiss/django-devfixtures

And of course on pypi: https://pypi.python.org/pypi/django-devfixtures

And docs: http://django-devfixtures.readthedocs.org/en/latest/

It has its limitations, but a clear approach. But there might be better approaches?

/Peter

--
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 django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/2eb8745e-b7b0-4efd-b5a4-6479b9763cf5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment