Skip to main content

A Django app to automatically handle archiving model tables in MySQL.

Project description

Django table archive is an app that will allow you to backup your models in MySQL to a different database.

Quick start

  1. pip install django-table-archive

  2. Add “django_table_archive” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'django_table_archive',
    ]
  3. Add this to your settings.py:

    ARCHIVE_TABLES = [
        {
            'table': 'api_person',
            'days_old': '90',
            'date_field': 'date_created'
        }
    ]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-table-archive-0.0.5.tar.gz (2.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page