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.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.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_datadownloader-1.2.0-py2.py3-none-any.whl (20.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-datadownloader-1.2.0.tar.gz.

File metadata

  • Download URL: django-datadownloader-1.2.0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for django-datadownloader-1.2.0.tar.gz
Algorithm Hash digest
SHA256 2d952a3f8a4df461cd471cd2c857a010c9289ce0d521a4572b5a31d2c7ec58d9
MD5 7388207b0aac4126b8b16efe99048961
BLAKE2b-256 847544f329f6ade065b00de967888a24d2d68aab2cc24bd69e1b31ae8e156cdd

See more details on using hashes here.

File details

Details for the file django_datadownloader-1.2.0-py2.py3-none-any.whl.

File metadata

  • Download URL: django_datadownloader-1.2.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for django_datadownloader-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ccff9d0308ecdcb0f6f174ae0e1a8f177bfed92a2438bef34d247606ea512140
MD5 e01c7569d5feb981bb012ba9d5f75c8a
BLAKE2b-256 d997ad4b8ca15326a1815dc38e8208d0cfd49b1ab966e9da78f614f9aca49916

See more details on using hashes here.

Supported by

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