Re: Read from an uploaded file and put data in a form for automatic Django validation

2012-07-30 Thread Bill Beal
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

Re: Read from an uploaded file and put data in a form for automatic Django validation

2012-07-29 Thread Derek
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

Read from an uploaded file and put data in a form for automatic Django validation

2012-07-28 Thread forthfan
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:/