skip to navigation
skip to content

django-batchform 0.3.0

Fill a batch of django forms from an uploaded file.

django-batchform

This project aims to provide a simple yet powerful way to fill a batch of forms from a single uploaded file (CSV, xlsx, …).

It uses Django class-based generic views to that effect, allowing for a very simple configuration:

from django import forms
from batchform import views

class LineForm(forms.Form):
    col1 = forms.CharField(max_length=10)
    col2 = forms.CharField(max_length=10)
    col3 = forms.CharField(max_length=10)

class BatchFormView(views.BaseUploadView):
    lines_form_class = LineForm
    columns = ('col1', 'col2', 'col3')

Demo

In order to have a look at the application, simply clone the repository, ensure you have Django in your repository, and run:

./manage.py runserver
 
File Type Py Version Uploaded on Size
django-batchform-0.3.0.tar.gz (md5) Source 2016-03-17 9KB
django_batchform-0.3.0-py3-none-any.whl (md5) Python Wheel 3.4 2016-03-17 8KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 0 downloads in the last week
  • 247 downloads in the last month