Sunday, February 26, 2012

Re: Using query set in views.py

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 column's information in my views.py.

Hope that makes it clearer.

Best Regards,

Stanwin Siow

On Feb 26, 2012, at 6:25 PM, Daniel Roseman wrote:

> 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 https://groups.google.com/d/msg/django-users/-/1N2Cz2nv9wQJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
>

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment