What is a django QuerySet?
- by gath
Guys,
When i do this
>>> b = Blog.objects.all()
>>> b
i get this
>>>[<Blog: Blog Title>,<Blog: Blog Tile>]
When i query what type b is,
>>> type(b)
i get this
>>> <class 'django.db.models.query.QuerySet'>
What does this mean? is it a data type like dict, list etc?
An example of how i can build data structure like a QuerySet will be appreciated.
I would want to know how django build that QuerySet (the gory details)
Gath.