Open Bobliuuu opened 1 week ago
wym by dump db? which db?
Dump the SQLite DB into Django (https://docs.djangoproject.com/en/5.0/ref/django-admin/#dumpdata) But since we don't wanna do this a lot the duplicates should be removed first.
Dump the SQLite DB into Django (https://docs.djangoproject.com/en/5.0/ref/django-admin/#dumpdata) But since we don't wanna do this a lot the duplicates should be removed first.
Ah I see your mistake, dumpdata doesn't import TO Django it exports the current DB into a cross-compatible format called a fixture (which you can specify to be json,xml,yml,ect...)
loaddata takes those fixtures and imports them into the DB
Requires #4 as a prerequisite