Re: Using query set in views.py

2012-02-27 Thread Stanwin Siow
i see. Thanks guys. I've got it working thanks to your inputs. Really appreciate it. Best Regards, Stanwin Siow On Feb 27, 2012, at 4:36 PM, doniyor wrote: > yes, as Ian said, you need name attr in your input so that you can > navigate to the real string input the user gives.. > > > >

Re: Using query set in views.py

2012-02-27 Thread doniyor
yes, as Ian said, you need name attr in your input so that you can navigate to the real string input the user gives.. On 27 Feb., 08:38, Ian Clelland wrote: > On Sunday, February 26, 2012, Stanwin Siow wrote: > > Ok disregard my previous question. > > > Here's the latest

Re: Using query set in views.py

2012-02-26 Thread Ian Clelland
On Sunday, February 26, 2012, Stanwin Siow wrote: > Ok disregard my previous question. > > Here's the latest one. > > > I have the following form in my HTML: > * * > * Keyword: * > * * > Your immediate problem here is that your element has an id, but no name attribute. That is why you are

Re: Using query set in views.py

2012-02-26 Thread Daniel Roseman
> > On Sunday, 26 February 2012 10:33:32 UTC, St@n wrote: > > Sorry if i have misled anyone. > > Here's a better view on what i'm asking. > > def get_keyword(): >return Keyword.objects.all() > > That method above returns me a list of Keyword items correct? > > How then do i get a specific

Re: Using query set in views.py

2012-02-26 Thread Stanwin Siow
Ok disregard my previous question. Here's the latest one. I have the following form in my HTML: Keyword:

Re: Using query set in views.py

2012-02-26 Thread Stanwin Siow
Sorry if i have misled anyone. Here's a better view on what i'm asking. def get_keyword(): return Keyword.objects.all() That method above returns me a list of Keyword items correct? How then do i get a specific item from that list? Keyword is a table in my database but i need a specific

Using query set in views.py

2012-02-26 Thread Daniel Roseman
Your question is not at all clear. You can use whatever you like in your view. What problem are you having? -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit

Using query set in views.py

2012-02-26 Thread Stanwin Siow
Hello, I was wondering if we are able to use querysets in views.py so i can use one of the columns in my method below: def keyword_subscribe(request): keyword= '' if request.method == 'POST': subscription_days = "7" new_keyword = request.POST.get('myTextField')