You question isn't very specific, however I'll try to add a couple of touch-points that may provide some direction.
Django manage.py can provide direct access to your models.
python manage.py shell
is your friend, for manually manipulating data, including the database via the Django ORM.
This link to the Django docs could provide a good starting point, particularly further down the page where models are queried using the Django shell.
Secondly are the import and export data commands available in manage.py, in particular the
dumpdata and
loaddata commands.
I suspect this is what you are looking for.