I must select a column from my database. I've try with:
from PLAYER.models import Player player = Player.objects.all() email = Player.objects.values('email') ok, work fine, but in the Django Book I read: "This method is useful when you know you're only going to need values from a small number of the available fields and you won't need the functionality of a model instance object. It's more efficient to select only the fields you need to use." Is there another method for select a single column? I must utilise the data of this column and import it by a string whithin an application write in Python. It's more efficient utilise the Django API for the database or the Python API, when my database must interact with an application write in Python? thanks in advance, Alfredo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---