Diskette¶
Export and import Django application datas and medias.
Features¶
Based on Django Applications to know about applications and their models;
Application datas are dumped with dumpdata command command as JSON fixtures;
Dump archive can be naturally loaded in any database type using Django command loaddata command;
You define applications to be dumped (or not) with multiple options;
Advanced data drainage for undefined applications;
Media archiving is done through storage paths (not Django storages) that can be whatever directory you need to backup;
Many excluding rules for datas and storages to avoid useless content in archive;
Build a complete archive that can be automatically loaded with Diskette or manually;
Support models made with django-polymorphic;
Django admin interface to manage dumps and API keys;
Diskette load command can get a dump archive either from a local file, a simple archive URL to download or automatically from the Django admin view (securized with API key);
Dependencies¶
Python>=3.9;
Django>=4.0;
datalookup>=1.0.0;
Requests>=2.32.3;
Django Sendfile>=0.7.0;
Links¶
Read the documentation on Read the docs;
Download its PyPi package;
Clone it on its Github repository;
Credits¶
Logo vector and icon by SVG Repo.
Contents¶
- Install
- Settings
DISKETTE_ADMIN_ENABLEDDISKETTE_APPSDISKETTE_STORAGESDISKETTE_STORAGES_EXCLUDESDISKETTE_DUMP_PATHDISKETTE_DUMP_PERMISSIONSDISKETTE_DUMP_FILENAMEDISKETTE_DUMP_AUTO_PURGEDISKETTE_LOAD_STORAGES_PATHDISKETTE_LOAD_MINIMAL_FILESIZEDISKETTE_DOWNLOAD_ALLOWED_PROTOCOLSDISKETTE_DOWNLOAD_ALLOW_REDIRECTDISKETTE_DOWNLOAD_TIMEOUTDISKETTE_DOWNLOAD_CHUNK
- Overview
- Basic sample
- Application definition
- Storage definition
- Commands
- Admin
- Tips
- References