Skip to main content

Admin interface to manage archives of db's json dumps and/or media datas

Project description

Description

This django app is an app tool that add an admin interface to manage archives of database’s json dumps and/or media datas.

Packages can be download with django-sendfile.

Install

You can retrieve it via pip:

pip install django-datadownloader

Usage

You need to add two libraries in your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'drdump',
    'datadownloader',
    ...
)

Add this to your URLs:

urlpatterns = [
    ...
    url(r'^admin/datadownloader/', include('datadownloader.urls')),
    ...
]

You can add a few options:

DATA_DOWNLOADER_PATH = join(VAR_PATH, 'protected_medias/datas')
DATA_DOWNLOADER_DUMP_PATH = join(VAR_PATH, 'dumps')
DRDUMP_OTHER_APPS = True
DRDUMP_MAP_FILE = join(BASE_DIR, 'drdump.json')
DRDUMP_EXCLUDE_APPS = ['auth', 'sessions', 'contenttypes']

See DrDump documentation for more: https://github.com/emencia/dr-dump

Running tests

To run the tests, run the django test management command with the settings found inside datadownloader.tests.settings:

$ django-admin test --pythonpath=. --settings=datadownloader.tests.settings

You must install mock if you run python2 or python < 3.4.

Changelog

1.2.1 - 2022/03/16

Correct bug when DATA_DOWNLOADER_DUMP_PATH is not relative

1.2.0 - 2021/11/23

Add settings DATA_DOWNLOADER_DUMP_PATH for specify folder where drdump dumps are stored

1.1.0 - 2021/06/08

Package now depends on “six” instead of using the deprecated embedded “six” module from Django which are not available anymore since Django 3.0.

1.x will be the last serie to support Python 2 and Django<2.2 versions, new serie 2.x will only support recent Python3 and Django versions.

Also did some cleaning in package setup and dependancies to fit to supported versions:

  • six

  • django>=1.8

  • dr-dump>=1.1.0

  • django-sendfile>=0.3.11

1.0.0 - 2018/09/26

Rewrite version.

Previously only release on a private package mirror, it have been release publicy to official Pypi on 2021/06/07.

0.2.2

  • add some information into main page

  • fix bug in uwsgi execution env

0.2.1

  • Forgot to update MANIFEST.in on 0.2.0 release

0.2.0

  • Refactoring code

  • Adding tests

0.1.1

  • Use rst syntax for doc/descriptions rather markdown.

0.1.0

  • First version.

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-datadownloader-1.2.1.tar.gz (21.7 kB view hashes)

Uploaded Source

Built Distribution

django_datadownloader-1.2.1-py2.py3-none-any.whl (20.7 kB view hashes)

Uploaded Python 2 Python 3

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