manage.py dumpdata > dumpfile.json
. A dumpfile which is reimported using manage.py loaddata dumpfile.json
then restores the file on disk.This simplifies backups and migrations of projects using django-filer to manage their media data, since an administrator does not require additional tools such as zip or tar. It also makes backups less error prone, since everything is contained in one single file.
-- More details here: https://github.com/jrief/django-filer/blob/serialize-payload/docs/dump_payload.rst and here: https://github.com/stefanfoulis/django-filer/pull/335
Stefan Foulis, the maintainer of django-filer considered: "But I'd really prefer a solution that works with django-filer and any other FileFields in the project."
So my question is, if such an additional feature would be accepted on the main Django project, rather than only in an external app, such as django-filer.
- Jacob
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment