Reposted as own subject with all the details

On May 21, 5:18 pm, "Stu.Axon" <stu.a...@gmail.com> 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 this?
>
> On May 20, 7:13 pm, Karen Tracey <kmtra...@gmail.com> wrote:
>
> > On Wed, May 20, 2009 at 2:39 AM, watad <awa...@gmail.com> wrote:
>
> > > this is my form after thomas reply:
> > > <form enctype="multipart/form-data" action="" method="POST" >
> > >                                 {{ form.as_p }}
> > >                                 <input type="submit" value="Submit" /
>
> > >                              </form>
>
> > > and this is my view after your reply :
>
> > > def careerspage(request):
> > >  if request.method == 'POST':
> > >        form = CareerForm(request.POST,request.FILES)
> > >        if form.is_valid():
> > >           form.save()
> > >           return HttpResponseRedirect('/thanks')
> > >  else:
> > >        form = CareerForm()
> > >  return render_to_response('careers.html', {'form':form})
>
> > > the validation for the resume upload still failing when i submit
> > > im reading the link u have posted to check whats wrong another help
> > > will be appriciated :)
>
> > If I cut-and-paste that view, that form (fixing up the oddly broken line)
> > and your models from your earlier note into a test project and test out that
> > view, I get a page with a form.  When I actually submit a file using that
> > form, I get redirected to '/thanks/', which gives me a "Page not found"
> > since I didn't set up any mapping for thanks.  So, somehow you are not
> > actually running the code you have posted, or using the template you think
> > you are.  At this point you need to do the standard debugging things --
> > start putting prints in to test the value of variables, etc.  What you have
> > posted here does work.
>
> > Karen
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to