Closed SibiAkkash closed 5 months ago
We have a script scripts/update-sample-data.sh
. Is there a reason that you didn't use that? :)
Oh i didn't see that script ;) I'll use that I got a contenttypes Integrity error when i tried dumping data directly, so i excluded that and it seemed to work @punchagan
May be use an empty DB and try to see if the load works, and allows a new dev to start working with the dumped DB? If you can share the full error, we can dig into it.
yeah i did try in an empty db, i'll share the errors
Commands i ran
./scripts/update-sample-data.sh
rm db.sqlite3
python manage.py migrate
python manage.py loaddata server/fixtures/sample_data.json
error: django.db.utils.IntegrityError: Problem installing fixture '/home/sibi/dev/india_ultimate_hub/server/fixtures/sample_data.json': Could not load contenttypes.ContentType(pk=25): UNIQUE constraint failed: django_content_type.app_label, django_content_type.model
i've dumped that data with the latest migrations.
@Joe2k: can you check if loading this fixture works and merge ?