Skip to main content
The fast_fixtures django application provides apps with a way to export fixtures which note the state of the database when they were made.

They then allow the database to move to that state when loading the data or warn the user about the discrepencies (if they want to play it save)

This module is very new and it's ideas are pretty radical. Please test and consider contributing to the code.

Caveats:

* Output only supports json right now. This is a limitation of django's serializer structure.

Features:

* Json file is backwards compatible and new data is ignored if not relivent.
* Will not run any migrations for test fixtures, but this tools could be used to upgrade those fixtures.

Installation:

```python
pip install django-fast-fixtures

INSTALLED_APPS = (
...
'fast_fixtures',
)
```

Use:

```bash
manage.py dumpdata --migrated > fixture.json

manage.py migrate ... or another website instance

manage.py loaddata fixture.json
```

Data Created:

The data created in the json file is almost exactly the same, except for a new header object which appears at the start of the data stream:

```json
[
{
"model": "auth.user",
"fields": {},
"migrations": {
"app_label": "last_migration_label",
...
},
},
...
other data
]
```

The model and fields entries are there so the header is ignored by a normal loaddata process. Migrations lists all the apps that are included in this dump and their last applied migration in order.

Metadata

Release files for django-fast-fixtures 0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-fast-fixtures 0.7
File Size Uploaded
django-fast-fixtures-0.7.tar.gz 4.3 kB Details

Release files / django-fast-fixtures-0.7.tar.gz

Download URL django-fast-fixtures-0.7.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cd5ef56696cf6c019b74ed5ea9c8128b95b60e3dd37d2d402cf204d160d77de9
BLAKE2b-256 checksum
How to use checksums
5fb82f44cf5776661a8434957500764dd19bb1ad6e887c1fdc584031bfe6e76e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.7 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page