Skip to content

Nollaigmul/django-simple-import

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-simple-import

An import tool easy enough your users could use it. django-simple-import aims to keep track of logs and user preferences in the database.

1.1.1 has been released to pypi

Project is minimally functional. Please evaluate before using in Production.

Alt text Alt text Alt text

Features

  • Supports csv, xls, xlsx, and ods import file
  • Save user matches of column headers to fields
  • Guess matches
  • Create, update, or both
  • Allow programmers to define special import methods for custom handling
  • Support for django-custom-fields
  • Set related objects by any unique field
  • Simulate imports before commiting to database
  • Undo (create only) imports
  • Security checks if user has correct permissions (partially implemented)

Install

  1. pip install django-simple-import

  2. Add 'simple_import' to INSTALLED APPS

  3. Add simple_import to urls.py like urlpatterns += url(r'^simple_import/', include('simple_import.urls')),

  4. syncdb (you may use south)

  5. (Optional) define allowed methods to be "imported". Example:

    class Foo(models.Model): ... def set_bar(self, value): self.bar = value simple_import_methods = ('set_bar',)

If you need any help we do consulting and custom development. Just email us at david at burkesoftware.com.

Usage

Go to /simple_import/start_import/ or use the admin interface

In the screenshots I gave them a django-grappelli theme. The base templates have no style and are very basic. See example of customization here

Security

I'm working on the assumtion staff users are trusted. Only users with change permission to a field will see it as an option. I have not spent much time looking for ways users could manipulate urls to run unauthorized imports. Feel free to contribute changes. All import views do require admin "is staff" permission.

About

An import tool easy enough your users could use it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published