django-seed
django-seed copied to clipboard
:seedling: Seed your Django database with fake data
Hey guys, I had a database `model` where I had `created` and `modified` `DateTime` fields with `auto_now` and `auto_now_add=True`. In one of my test case I had used `django_seed` to...
This is my test case. After seeder.excute() some models, I cannot create this model instance without set created_at field, because turn_off_auto_add update filed attr but not recovery. ``` class MyModel(models.Model):...
```python SeederCommandError: Circular dependencies exist among these items: {'store.models.Collection':{'store.models.Product'}, 'store.models.OrderItem':{'store.models.Product'}, 'store.models.Product':{'store.models.Collection'}} ``` I get this circular dependency error while seeding, is there any option to fix this?
"--seeder" arg not working in management command this command: ./manage.py seed location --number=10 --seeder "Address.hours" "None" gives me: manage.py seed: error: unrecognized arguments: --seeder Address.hours {} Django==3.2.4 Python 3.8.10
Even though I'm not using Postgres for Django (just yet), the use of ArrayFields requires me to have it installed. ``` Traceback (most recent call last): File "/home/forest/Documents/git/megagame-controller/django/manage.py", line 22,...
Reference: #81 * Implement feature to truncate model tables before seeding * Address shadowed/mutable kwarg in execute method Sorry I had to submit this twice; I didn't notice the change...
Is there an example of how `django-seed` can generate fake users to populate test database? I have a django app called `trainers` in which I implement login / logout API's,...
This is just a list of features that I should look into - [x] Fields that have choices should have one chosen from the options - [ ] Option to...