Package: django-smuggler
Django Smuggleris a pluggable application forDjango Web Frameworkto
easily dump/load fixtures via the automatically-generated administration
interface. A fixture is file with model data serialized to e.g. JSON or XML
that Django knows how to import to the database.Smuggler is especially useful for transporting database data between production
and development environments, but can also be used as a backup tool.Project pagehttp://github.com/semente/django-smugglerTranslationshttps://www.transifex.com/projects/p/django-smuggler/Installing & SetupSmuggler is in thePython Package Index (PyPI)and you can easily install
the latest stable version of it using the toolspiporeasy_install. Try:pip install django-smuggleror:easy_install django-smugglerAlternatively, you can install Smuggler from source code running the follow
command on directory that contains the filesetup.py:python setup.py installAfter installation you need configure your project to recognizes the Smuggler
application adding'smuggler'to yourINSTALLED_APPSsetting and setup
the projectURLConflike follow:urlpatterns = [
    # ...
    path('admin/', include('smuggler.urls')),  # before admin url patterns!
    path('admin/', admin.site.urls),
]Then try access these urls:/admin/load/, to load data from uploaded
files or files on SMUGGLER_FIXTURE_DIR;/admin/dump/, to download data from
whole project;You can also pass in a querystring like/admin/dump/?app_label=flatpages,auth,yourapp.modelto specify what
must be dumped./admin/APP_LABEL/dump/, to
download data from a app;/admin/APP_LABEL/MODEL_LABEL/dump/, to download data
from a model;If you can access the URLs above, the application was setup correctly. Note
that these URLs are accessible only by superusers.Smuggler also provides a template to show buttons for dump and load data on
change list page (change_list.html). You can setup the ModelAdmin you are
interested like follow:class ExampleAdmin(admin.ModelAdmin):
    change_list_template = 'smuggler/change_list.html'
    ...SettingsSmuggler has the following settings available. You can set them in your projectsettings.py. If you doesn’t set them it will assume the default values:SMUGGLER_EXCLUDE_LISTList of models to be excluded from dump. Use the form ‘app_label.ModelName’.
Default: [].SMUGGLER_FIXTURE_DIRUploaded fixtures are stored in this directory (if requested).
Default: None.SMUGGLER_FORMATFormat for dumped files. Any of the serialization formats supported by
Django, json, xml and in some cases yaml.
Default: ‘json’.SMUGGLER_INDENTIndentation for dumped files.
Default: 2.ScreenshotsButtons on change_list.html:Load form (withSMUGGLER_FIXTURE_DIRconfigured):Release notesVersion 1.0.4 (2022-02-03)Fix #76Version 1.0.3 (2021-08-12)Fix a bug in load form templateVersion 1.0.2 (2020-09-28)Support Django 3.1Version 1.0.1 (2020-05-15)Fix Python packaging setupVersion 1.0.0 (2020-04-20)Support Django 3.0Drop support for Python < 3.6 and Django < 2.2Version 0.9.1 (2018-11-05)Support Django 2.1Version 0.9.0 (2018-03-22)Support Django 2.0Drop support for Django < 1.10Version 0.8.0 (2016-11-09)Support Django 1.10Version 0.7.0 (2016-02-25)Support Django 1.8Support Django 1.9Drop support for Django < 1.7Drop support for Python < 2.7Version 0.6.1 (2015-11-25)Increase Django 1.7 compatibilty by supporting
use_natural_foreign_keys and use_natural_primary_keys arguments
for dumpdataVersion 0.6 (2014-09-18)HTML5 multiple file upload is now supported for fixture uploadsSupport loading fixtures fromSMUGGLER_FIXTURE_DIRand upload at the same timeRecognize fixtures with upper case file extension correctlyLoading fixtures now uses loaddata management commandRemoved signals.pyRemoved sample templatesCleaner code and better tests :-)Version 0.5 (2014-08-21)Added an option to specify a list of app labels to the /dump/ viewImproved test suiteDropped Django 1.3 supportPreliminary Python 3 supportVersion 0.4.1 (2013-11-12)Changelist template is now Django 1.6 compatibleVersion 0.4 (2013-04-01)Django 1.5+ support;Added German translation;Added some tests.Version 0.3 (2012-01-31)Significant bug fixes and improvements when loading and exporting data;Allow formats for import besides JSON and XML (aa105b3, needs documentation);Added Dutch translation.Version 0.2 (2011-08-19)Django 1.2+ support;Keep uploaded files as alternative choices to import (issues #1 and #6);Vulnerability fixed (d73cec6);Added Polish, Russian, Catalan and Brazilian Portuguese translations.Version 0.1.1 (2010-01-20)First stable version.Backwards-incompatible changesRemoved AdminFormMixin (version 0.7)Removed signals.py (version 0.6)Renamed urls from import/export to load/dump (version 0.1)ContributingIf you find any problems in the code or documentation, please take 30 seconds
to fill out a issuehere.The contributing with code or translation is MUCH-APPRECIATED. Feel free to
fork or send patches.You can translate this application to your language using Transifex. Access
theproject pageon Transifex.See the AUTHORS file for a complete authors list of this application.Thanks toInteraction Consortiumfor
sponsoring the first releases of the project.TestsIf you are contributing to django-smuggler we recommend setting up a
virtualenv and running:pip install -r test-requirements.txtYou can then run the tests with:make testsBefore submitting a pull request please test against our supported versions
of Python and Django by running:toxTo see if you need to add tests we use coverage. You can generate a coverage
report with:make coverageTo check if your code follows the style guide you can run:make lintCopying conditionsDjango Smuggler is free software; you can redistribute it and/or modify it
under the terms of theGNU Lesser General Public Licenseas published by the
Free Software Foundation; either version 3 of the License, or (at your option)
any later version.Django Smuggler is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
details.You should have received a copy of the GNU Lesser General Public License along
with this program; see the file COPYING.LESSER. If not, seehttp://www.gnu.org/licenses/.