Skip to content
Django model object generation - no more fixtures!
Find file
Latest commit 5662c7e @paltman paltman 0.5
Failed to load latest commit information.
docs 0.4.5
milkman 0.5
testapp merge wilfred and ccollins
.gitignore clean to be pep8 compliant
AUTHORS Add Issac Kelly to AUTHORS file
LICENSE added MIT license
requirements.txt First stab at an image generator a working for python3

Milkman - Easy django model object generation

Quick Examples

from milkman.dairy import milkman
from myapp.models import Video, Editor

#I just want a random video in the db to test with
v = milkman.deliver(Video)

#I want a video with a particular editor
e = milkman.deliver(Editor)
v = milkman.deliver(Video, editor=e)


Install virtualenv and virtualenvwrapper

mkvirtualenv milkman
pip install -r requirements.txt

Running Tests

cd testapp
./ test

Known Issues

Several of the basic django model fields have generators, although most do not. Let us know if there is a particular field to be implemented thats really bugging you, or just send a patch :)

Something went wrong with that request. Please try again.