Is there anyway to load one fixture and have it load multiple fixtures?
I'd ideally like to type:
python manage.py loaddata all_fixtures
And have that load all of the data instead of having to type everything. Is this possible?
...
I'm trying to get my Django fixtures printed in a prettier way.
I've outputting the fixtures:
python manage.py dumpdata >> fixture_app.json
This creates a file with 1000's of characters all on one line.
When I try to view the file with my Text Editor( TextMate ), the Editor hangs.
Is there anyway that the fixtures can be exported ...
I am using "manage.py test" along with a JSON fixture I created using using 'dumpdata'
My problem is that several of the tables in the fixture are very large (for example one containing the names of all cities in the US) which makes running a test incredibly slow.
Seeing as several of these tables are never modified by the program (eg...
Question
Why does Django automatically load the initial_data.json fixture when it's located inside the project directory but not located in one of the three specified locations that Django searches for fixtures?
Configuration Information
I have not set the FIXTURE_DIRS setting in settings.py
Django 1.2.1
Django's Documentation Re...
I am testing my application and I am running into an issue and I'm not sure why. I'm loading fixtures for my tests and the fixtures have foreign keys that rely on each other. They must be loaded in a certain order or it won't work.
The fixtures I'm loading are:
["test_company_data", "test_rate_index", 'test_rate_description']
Company ...
I'm having troubles loading fixtures on GAE with google-app-engine-django. I receive an error that says "DeserializationError: Invalid model identifier: 'fcl.User'"
./manage.py loaddata users
I'm trying to load a fixture that has the following data:
- model: fcl.User
fields:
firstname: test
lastname:...
Hello all,
I am making unittests for a django app. I need some data in the database for my tests so I am using a json fixture.
I have two fixtures:
for users and it works ok.
for some webpages
The fixture 2 cause the following error:
Problem installing fixture 'C:\Users\luc\Dev\Hg\mnl-adminpub\website\fixtures\website-unittest.js...