To be able to see how my django application looks like, and performs with lots of data, i would like to programmatically generate data in the database. In the django documentation they propose either using fixtures oder SQL statements, but i would rather use a simple python loop to generate thousends of random entries by using the django model classes.
How can i execute such a script? I am using south for database migration, but even there such generation of data seems not to be supported.
You can use django-whatever (enhanced django-any) – it easily creates dummy data.
Here is my sample (in *app_name*/management/commands/dummyitems.py):
And so if I need 100 dummy items I run: