Questions tagged [dumpdata]

`django-admin.py dumpdata` is a command you could use to output to standard output all data in the database associated with the named application(s) in a Django powered website.

To see detailed information about django-admin.py dumpdata see the Django docs.

52 questions
0
votes
1 answer

Django 1.7.1 dumpdata progress bar

I have an existing project in django 1.7.1, but from django 1.9.1 a new feature had been introduced in the dumpdata command (--output) python manage.py dumpdata --output backup.json On executing this command we can see the progress bar in the…
Ajay Kumar
  • 1,595
  • 3
  • 20
  • 36
0
votes
2 answers

Shelve (or pickle) doesn't save the dict of objects correctly. It just looses the data

I decided to create a little tracking list for personal needings. I created two main classes to store and process data. First one represents the subject and an exercises list. The second one represents each exercise from exercises list (mainly just…
tidylobster
  • 683
  • 5
  • 13
0
votes
0 answers

how to merge the output of django dumpdata?

manage.py dumpdata is very convenient, I store fixture and other project related data in the project folder. If two people work on the same project and want to merge the output of dumpdata, how ? And is there might be clash with primary keys ?
user3599803
  • 6,435
  • 17
  • 69
  • 130
0
votes
0 answers

Decoding unicode escape avoiding quotes and some other symbols needed to escape

I've got a problem with encoding unicode escapes. After python manage.py dumpdata, I have json with escaped strings. I need to get readable strings, so I tried to use json_data.decode("unicode_escape").encode("utf8") but decode("unicode_escape")…
Vladimir Solovyov
  • 287
  • 1
  • 2
  • 11
0
votes
1 answer

Django dumpdata writes datetimes as nulls

I have a django database (sqlite) which contains my models. In particular, there's one model with a date field which is not null in the database (confirmed with the sqlite shell), which dumpdata always serializes as null. I'm using django 1.4.5…
Marcin
  • 48,559
  • 18
  • 128
  • 201
0
votes
1 answer

Django : DoesNotExist: matching query does not exist

I'm in the process of moving a django (v1.1) project from mysql to postgresql (fun!) and currently I am transferring all of the data. I attempted to use the manage.py dumpdata option, but the server we're using is rather old and would take a really…
the_man_slim
  • 1,155
  • 2
  • 11
  • 18
0
votes
1 answer

django loaddata issue with new datetime field in postgres

i recently converted a project's database from sqlite to postgres, because of timezone issues. The conversion works fine in my local dev environment. However, in my production environment on webfaction, when I try to use loaddata to populate the…
mb52089
  • 872
  • 2
  • 10
  • 24
1 2 3
4