Fill a batch of django forms from an uploaded file.
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')
In order to have a look at the application, simply clone the repository, ensure you have Django in your repository, and run:
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django_batchform-0.3.0-py3-none-any.whl (9.1 kB)||File type Wheel||Python version 3.4||Upload date||Hashes View|
|Filename, size django-batchform-0.3.0.tar.gz (9.4 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for django_batchform-0.3.0-py3-none-any.whl