Thanks a lot guys. After I have changed my code to

sales_person = request.POST['salespeople_dropdown']
it worked perfectly.

On Jun 12, 2:55 pm, strelok31 <[EMAIL PROTECTED]> wrote:
> Thanks Jeremy,
>
> I will try out your suggestions. I am not new to programming, I am new
> to web programming and Django. I have done all four steps that your
> suggested before, I have just done #2 wrong. I will correct it now.
> Thanks.
>
> On Jun 12, 12:54 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
>
> > On 6/12/07,strelok31<[EMAIL PROTECTED]> wrote:
>
> > > Any ideas? I have been stuck on this for a while and I got nobody else
> > > to ask for help. Thanks again.
>
> > If you're really stuck, you need pointers as much as you need a
> > solution; there really are many sources to find info on how to
> > accomplish this fairly simple task.
>
> > General steps:
> >  1) add to html, which you've already done.
> >  2) add to python view, which you've done wrong.
> >  3) add to python model, which you probably haven't done.
> >  3) add to database, which you probably haven't done.
>
> > For #2, this line:
> > sales_person = document.Submit.salespeople_dropdown.value
> > most certainly should be something like this:
> > sales_person = request.POST['salespeople_dropdown']
>
> > Based on this line:
> > from django.models.accukeys import acculicenses
> > you're using an old version of Django (pre-0.95), which is fine, but
> > means you should refer to documents for the version you're using.  I
> > suggest this:http://www.djangoproject.com/documentation/0_91/
>
> > Anyway, for #3, go find the module accukeys.py, find the class in it
> > named AccuLicense, and add a field attribute for sales_person.
>
> > For #4, however you handle your DB migration, add the sales_person
> > column to the DB; you should see mysql's docs for how to do that.
>
> > If you are new to programming, rather than asking a broad question
> > hoping for a very specific solution, consider contracting to get the
> > job done or taking the time to learn the tools.
>
> > We want to make Django easy to use, but even so, a fairly large amount
> > of knowledge is assumed.
>
> > Cheers,
> >   Jeremy


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to