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 for manage archives of database’s json dumps and/or media datas.
For the moment, this app use the script build by the emencia-recipe-drdump package (we must improve it for directly use dr-dump package.
Packages can be download with django-sendfile.
Install
You can retrieve it via pip:
pip install django-datadownloader
You can add this to your requirements file:
django-datadownloader==1.0.0b5 dr-dump==1.0.0b7
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') 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
Links
Pypi page: https://pypi.python.org/pypi/django-datadownloader
Github page: https://github.com/emencia/django-datadownloader
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.0.0
Rewrite version
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-datadownloader-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7aedfe8730a7b617efe12a274aa2c68af32fc3bdeae6bcf72bec21510784ea7 |
|
MD5 | f74971ea2763594b1597a90795ff34c4 |
|
BLAKE2b-256 | 16fcd1d8c5ded5d658b8c3926aef9f770fe07b5cfa210245c0536e29717217db |