Software Details:
Version: 0.1
Upload Date: 11 May 15
Distribution Type: Freeware
Downloads: 35
django-data-tools is a set of utilities and improvements for managing data (fixtures specifically) in Django.
Install
INSTALLED_APPS = (
# ...
'datatools',
)
Commands
dumpdata
An improved version of the manage.py dumpdata command:
- Adds a --limit option to specify the maximum number of objects per model to fetch.
- Adds a --sort option to specify ascending or descending order for serialization.
- Automatically follows the dependency graph for ForeignKeys and ManyToManyFields.
# Retrieve the latest 10000 thread objects with all their required dependencies
python manage.py dumpdata forums.thread --limit=10000 --sort=desc
Requirements:
- Python
- Django
Comments not found