On 9/10/07, Ronald <[EMAIL PROTECTED]> wrote:
>
> I completely forgot about that. However, my problem still persists
> cause I am not using Models.FileField but Forms.FileField.
>
> Your solution will work for models but I am using forms and I m not
> sure if instance of form has similar method su
On 9/10/07, Dushyant Sharma <[EMAIL PROTECTED]> wrote:
>
> save data
> new_data = request.POST.copy() # these two lines
> are
> new_data.update(request.FILES) # very important
These two lines are no longer important. An alternate approach to
handling fil
here is model
class Thing(models.Model):
PID=models.ForeignKey(Property)
name = models.CharField(blank=False, null=False, maxlength=30)
photo = models.ImageField(upload_to='images/things/', blank=True,
null=True)
the form
class ThingForm(forms.Form):
name = forms.CharFi
I completely forgot about that. However, my problem still persists
cause I am not using Models.FileField but Forms.FileField.
Your solution will work for models but I am using forms and I m not
sure if instance of form has similar method such as get_FOO_filename.
Sorry i wasnt really clear befor
Read the docs:
http://www.djangoproject.com/documentation/db-api/#get-foo-filename
On 10 сент, 11:19, Ronald <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I need a little bit of help here.
>
> I want to let user to import a csv file which will be parsed into the
> database.
> I am thinking of using
Hi there,
I need a little bit of help here.
I want to let user to import a csv file which will be parsed into the
database.
I am thinking of using FileField to let the user choose the file (with
the browse button) but I am having some difficulty parsing it.
I was thinking of using csv library f
6 matches
Mail list logo