Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > Django Plugins

    django-smuggler 0.4

    Download button

    Downloads: 300  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Guilherme Gondim | More programs
    GPL v3 / FREE
    April 3rd, 2013, 18:34 GMT [view history]
    ROOT / Internet / Django Plugins

     Read user reviews (0)  Refer to a friend  Subscribe

    django-smuggler description

    Import/export fixtures via Django admin interface

    django-smuggler is a pluggable application for the Django web framework that help you import/export fixtures via the automatically-generated admin interface.

    Installing & Setup

    Smuggler is in the Python Package Index (PyPI) and you can easily install the latest stable version of it using the tools pip or easy_install. Try:

    pip install django-smuggler

    or:

    easy_install django-smuggler

    Alternatively, you can install Smuggler from source code running the follow command on directory that contains the file setup.py:

    python setup.py install

    After installation you need configure your project to recognizes the Smuggler application adding 'smuggler' to your INSTALLED_APPS setting and setup the project URLConf like follow:

    urlpatterns = patterns('',
     # ...
     (r'^admin/', include('smuggler.urls')), # put it before admin url patterns
     (r'^admin/', include(admin.site.urls)),
    )


    Then try access these urls:

     * /admin/import/, to upload files to be imported;
     * /admin/export/, to download data from whole project;
     * /admin/APP_LABEL/export/, to download data from a app;
     * /admin/APP_LABEL/MODEL_LABEL/export/, 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 import and export 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'
     ...


    Note: on directory "etc/sample_templates/" you have some template examples to put Smuggler's buttons on app indexes and admin index page.

    Settings

    Smuggler has the following settings available. You can set them in your settings.py. If you doesn't set them it will assume the default values:
    SMUGGLER_FORMAT
     Format for exported files. 'json' and 'xml' are supported. Default: 'json'.
    SMUGGLER_INDENT
     Indentation for exported files. Default: 4.
    SMUGGLER_FIXTURE_DIR
     To be used with signal smuggler.signals.save_data_on_filesystem. Default: None.


    Product's homepage

    Requirements:

    · Python
    · Django

    What's New in This Release: [ read full changelog ]

    · Django 1.5+ support;
    · Added German translation;
    · Added some tests.

      


    TAGS:

    export fixtures | import fixtures | Django admin interface | Django | fixtures | import

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM