25👍
I haven’t used it myself, but django-autofixture looks pretty much like what you are after.
Other similar apps are listed in this grid: https://www.djangopackages.com/grids/g/fixtures/
8👍
This has some pretty nice generic field types that aren’t Django-specific
- [Django]-Django fuzzy string translation not showing up
- [Django]-Django fix Admin plural
- [Django]-Django Class Based View for both Create and Update
8👍
django-dilla was built specifically to populate your django models with ‘spam’ data. The below is taken directly from the site example after defining some settings. It will even let you define your own ‘spammers’ that will generate data in a particular format.
$ ./manage.py run_dilla --cycles=100
Dilla is going to spam your database. Do you wish to proceed? (Y/N)Y
Dilla finished!
2 app(s) spammed 900 row(s) affected, 2498 field(s) filled, \
502 field(s) ommited.
- [Django]-POST jQuery array to Django
- [Django]-Tailwindcss: fixed/sticky footer on the bottom
- [Django]-What's the difference between CharField and TextField in Django?
2👍
Checkout django-mockups: https://github.com/sorl/django-mockups
It will automatically generate data for any model, including foreign key and many to many. You can run it as-is out-of-the-box, giving it the maximum depth for relationships, and it will generate data fully exploiting your model.
You can also write your own generators and factories to get fine-grained control over relationships and to generate data specific to your application, rather than just random data. I just got through using it on a project, and it saved me literally days of work setting up test data.
- [Django]-Displaying graphs/charts in Django
- [Django]-ERROR: Could not build wheels for backports.zoneinfo, which is required to install pyproject.toml-based projects
- [Django]-DRF: Simple foreign key assignment with nested serializers?
1👍
If the question is still actual you may try package django-mimesis.
It offers to fill database with dummy data in different languages according to types of fields. Also you may download some pictures automatically using specified topics. Not always works great, sometime pictures’ topics are mismatched. But for me it is enough.
- [Django]-Django REST Framework combining routers from different apps
- [Django]-Django – run a function every x seconds
- [Django]-Id field in Model Django
0👍
Django-eadred was designed for "generating sample data."
As its docs state
eadred allows you to programmatically generate the data using model makers, factories, fixtures, random seeds—whatever your needs are.
Additionally, eadred provides library functions to make generating data easier.
- [Django]-Django: change the value of a field for all objects in a queryset
- [Django]-How to call function that takes an argument in a Django template?
- [Django]-Get user profile in django