Welcome to django-fakery’s documentation!¶
An easy-to-use implementation of Creation Methods (aka Object Factory) for Django, backed by Faker
.
django_fakery
will try to guess the field’s value based on the field’s name and type.
QuickStart¶
from django_fakery import factory
from myapp.models import MyModel
factory.make(
MyModel,
fields={
'field': 'value',
}
)
Contents: