skip to navigation
skip to content

django-fixture-generator 0.2.0

django-fixture-generator is a reusable django application to make writing fixtures not suck.


Requires Django 1.2.

* Add ``"fixture_generator"`` to your ``INSTALLED_APPS`` setting.
* Create a ```` file in one of your apps. It should look
something like:

from fixture_generator import fixture_generator

from django.contrib.auth.models import User, Groups

@fixture_generator(User, requires=["my_app.test_groups"])
def test_users():
muggles, wizards = Group.objects.order_by("name")
simon = User.objects.create(username="simon")
adrian = User.objects.create(username="adrian")
jacob = User.objects.create(username="jacob")


def test_groups():

* Run `` generate_fixture my_app.test_users``.
* Save the resulting fixture somewhere.  
File Type Py Version Uploaded on Size
django-fixture-generator-0.2.0.tar.gz (md5) Source 2010-07-16 3KB
  • Downloads (All Versions):
  • 5 downloads in the last day
  • 39 downloads in the last week
  • 171 downloads in the last month