This works:
In forms.py:
class UploadForm(forms.Form):
name = forms.CharField(label='name')
addr1 = forms.CharField(label='addr1')
Interactive:
>>> from django import *
>>> from app.forms import *
>>> d = {'name': 'Fibber McGee', 'addr1': '79 Wistful Vista'}
>>> form = UploadForm(d)
>>> for
Have a look at:
http://stackoverflow.com/questions/6091965/django-upload-a-file-and-read-its-content-to-populate-a-model
On Sunday, 29 July 2012 04:43:15 UTC+2, forthfan wrote:
>
> Hi all,
>
> Being lazy, I want Django to validate the stuff I read from an uploaded
> file as if it were being post
Hi all,
Being lazy, I want Django to validate the stuff I read from an uploaded
file as if it were being posted. Is there a nice way to do this?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https:/
3 matches
Mail list logo