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
Links
Package on PyPI: http://pypi.python.org/pypi/django-batchform/
Source code on Github: https://github.com/rbarrois/django-batchform/
Doc on ReadTheDocs: (TODO)
Continuous integration on Travis-CI (TODO)
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
Built Distribution
File details
Details for the file django-batchform-0.3.0.tar.gz
.
File metadata
- Download URL: django-batchform-0.3.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43a7a2086190661357e5b456dd72081785c8495892f838b32c850aaa12ed59f3 |
|
MD5 | 93b17b31ca2da99c0c82c4d2176ac902 |
|
BLAKE2b-256 | 7bb018cf103fb2f3e40b3520a9ddf182a214080c3417d1828c1894cb7d81d3d1 |
File details
Details for the file django_batchform-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: django_batchform-0.3.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 701a16e25f8e193916ba0ab485310d7c2ae648bb3597a69142b051d12780b972 |
|
MD5 | 06f4e876f4ee3ab4ce898ca0dcdee634 |
|
BLAKE2b-256 | a8b2faed560921f3bebde55a7d647ad2db80c9bde38cd02e2227e846d696ff8a |