the form is working fine now , actually my form was inside another
form , that was the problem
On May 22, 6:55 pm, watad wrote:
> hi karen , actually im runing this code , after submit i can see all
> the data inside the model ,only the filefield resume is empty , of
> course when i test this i
hi karen , actually im runing this code , after submit i can see all
the data inside the model ,only the filefield resume is empty , of
course when i test this i add (blank=True, null=True) to my resume
field , so why do u think the other fileds is geeting the data
submitted by the form and the r
Reposted as own subject with all the details
On May 21, 5:18 pm, "Stu.Axon" wrote:
> I'm having the same problem - using a modelform
>
> I've got two fields jad_file and jar_file, I notice when I look at the
> html that they turn into
> id_jad_file
> and
> id_jar_file
>
> Is there a reason for t
I'm having the same problem - using a modelform
I've got two fields jad_file and jar_file, I notice when I look at the
html that they turn into
id_jad_file
and
id_jar_file
Is there a reason for this?
On May 20, 7:13 pm, Karen Tracey wrote:
> On Wed, May 20, 2009 at 2:39 AM, watad wrote:
>
> >
On Wed, May 20, 2009 at 2:39 AM, watad wrote:
>
> this is my form after thomas reply:
>
> {{ form.as_p }}
> >
>
>
> and this is my view after your reply :
>
> def careerspage(request):
> if request.me
this is my form after thomas reply:
{{ form.as_p }}
and this is my view after your reply :
def careerspage(request):
if request.method == 'POST':
form = CareerForm(request.POST,request.FI
On Tue, May 19, 2009 at 5:23 AM, watad wrote:
> i have a model Career
>
> class Career(models.Model):
> full_name = models.CharField(max_length=200)
> email = models.EmailField()
> nationality = CountryField()
> resume = models.FileField(upload_to='resumes')
> def __unicode__(self):
>
thanks for the reply thomas
if tried that but it is still giving the validation message
On May 19, 1:18 pm, Thomas Guettler wrote:
> Maybe you form misses this: enctype="multipart/form-data"
>
> watad schrieb:
>
> > dear all
> ...
> > i can see the fileds but when i try to submit , the rusume va
Maybe you form misses this: enctype="multipart/form-data"
watad schrieb:
> dear all
...
> i can see the fileds but when i try to submit , the rusume validation
> is always failing (This field is required.)
> although i upload the file, and i was able to add data usign the admin
> interface witho
dear all
i have a model Career
class Career(models.Model):
full_name = models.CharField(max_length=200)
email = models.EmailField()
nationality = CountryField()
resume = models.FileField(upload_to='resumes')
def __unicode__(self):
return self.full_name
and i have the model fo
10 matches
Mail list logo