Skip to main content

Fill a batch of django forms from an uploaded file.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-batchform-0.2.2.tar.gz (9.3 kB view details)

Uploaded Source

File details

Details for the file django-batchform-0.2.2.tar.gz.

File metadata

File hashes

Hashes for django-batchform-0.2.2.tar.gz
Algorithm Hash digest
SHA256 c09c7db0cb8c0806bf8b5657b0fe2601f2176715b918cb8f1fc079f3d0cddff4
MD5 12f2c355536b30d9a04cdf4194098bbb
BLAKE2b-256 05e6fa1414c21516879534d8b1456160ee0595d27104c1f9b62f9c88b3114588

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page