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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-datadownloader-1.2.1.tar.gz
  • Upload date:
  • Size: 21.7 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.7

File hashes

Hashes for django-datadownloader-1.2.1.tar.gz
Algorithm Hash digest
SHA256 a3cbc831529d2ad6dd688f48bbc2b57d39fd6e8e6eb15e62fd0d562c13019d02
MD5 b3d7b3100d21b85d9b7ed46c7f143803
BLAKE2b-256 067f8c7bfec2880088f7b02cf5af6c8bcb14560da1047a1c54fc419686eda7e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_datadownloader-1.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 20.7 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.7

File hashes

Hashes for django_datadownloader-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 77e936c2bfae0692207f2cb426662f8d6feab2235b170de7be72de861e78f1f7
MD5 a88d711ba96f7a4ba3e902df42e57732
BLAKE2b-256 8442a75a8d35c5ef40f168f9c909988a8d24a14b9ea67e7c0fd549e3f6f03ad3

See more details on using hashes here.

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