Posts Tagged ‘ jobs ’

Django Tips of the Day: Convert a model instance into a dict

January 28, 2011
By

As documented in Django official docs, you can convert a queryset into a list of dict, like so: # This list contains a dictionary.> > > Blog.objects.filter(name__startswith='Beatles').values()[{'id': 1, 'name': 'Beatles Blog', ...

Read more »

Python Tips & Tricks of the Trade | LearnComputer!

March 2, 2010
By

Python shares elements of Ruby and Java languages, and constructs of C/C++. The Pythonic way of programming in Python is to use Lambda functions and list comprehension.

Read more »