dumpdata Questions

4

Solved

I generated a fixture: python manage.py dumpdata --all > ./mydump.json I emptied all my databases using: python manage.py sqlflush | psql mydatabase -U mydbuser But when i try to use loadd...
Benbena asked 9/2, 2014 at 2:41

14

Solved

Is there a easy way to dump UTF-8 data from a database? I know this command: manage.py dumpdata > mydata.json But the data I got in the file mydata.json, Unicode data looks like: "name": "\...
Semilunar asked 26/1, 2010 at 4:18

13

Solved

Can I perform a dumpdata in Django on just a single model, rather than the whole app, and if so, how? For an app it would be: python manage.py dumpdata myapp However, I want some specific model...
Kilocalorie asked 11/7, 2009 at 6:34

2

I have a PostgreSQL database that where I performed python manage.py dumpdata to backup the data into a json file. I created a new PostgreSQL database, performed a migrate, and everything worked li...
Professional asked 26/9, 2017 at 2:21

4

I'm getting an error when I'm trying to dump data to a JSON fixture in Djanog 1.2.1 on my live server. On the live server it's running MySQL Server version 5.0.77 and I imported a lot of data to my...
Finzer asked 14/9, 2010 at 10:44

2

we have a Django 1.4.5 project with a PostgreSQL 9.3 backend. Unfortunately we are facing the problems when attempting to create fixtures for one of the apps (which is called sddb). The database i...
Arita asked 8/10, 2014 at 8:20

5

Solved

I am trying to use the call_command method to call the dumpdata command. Manually, I use it as follows to save the data to a file. python manage.py dumpdata appname_one appname_two > /path/to/s...
Snicker asked 18/4, 2013 at 6:16

2

Solved

I use Generic Foreign keys to relate different profiles with my Users model which is inherited from auth.User. I'm not able to do dumpdata though with the --natural option passed. It says, Error:...

1

Solved

As in this question, I set up a dumpdata-based backup system for my database. The setup is akin to running a cron script that calls dumpdata and moves the backup to a remote server, with the aim of...
Hydrops asked 16/1, 2016 at 0:11

1

Solved

I'm unsure as to whether this question should be posted in the Database Administrators' section or here, so please advise if I got it wrong. I have a Django-based website which doesn't change much...
Anatol asked 29/6, 2016 at 15:4

2

Solved

I'm trying to use dumpdata to generate JSON for a database that is sufficiently large for django to take a long, long time to output. Is there any way to dump only a subset of the fields; say, 100,...
Weever asked 28/4, 2010 at 23:51

1

how to copy records from one database to another django ? I tried for the first database python manage.py dumpdata material - indent = 1 material is the directory database after ? material.js...
Inanity asked 18/9, 2013 at 6:33

1

Solved

I'm trying to dump my database (sqlite3) to a json file for a fixture, but I have an unmanaged model which is causing a no such table error (obviously!) so how do you dumpdata with these kind of mo...
Collarbone asked 19/8, 2013 at 12:21
1

© 2022 - 2024 — McMap. All rights reserved.