validate the css validate the xhtml

Ceci n'est pas une blog
by Glenn Franxman, Django Developer / Stunt Programmer.

robot future

posted: 2003-11-13 17:30:34 perma-link, RSS comments feed

This piece of fiction has to be the best demonstration of how progress and technological evolution is outpacing human evolution: Manna.



Omsin commented, on August 20, 2012 at 5:16 p.m.:

For you loop over huge querysets, you shulod disable the internalcache by using Entry.objects .iterator().If you only need some values, use values_list( myattr', ). Maybe with flat=Trueif you only want one value from each row.I had the same problem. But now it works nicely.Check that your queries are not saved by DEBUG:from django.db import connectionassert not connection.queries


Alladin commented, on June 27, 2013 at 9:55 p.m.:

There are another warnoroukd. If we don't need related page in navigation, but only related data, we can use this code to fetch it:from menus.base import NavigationNodeNavigationNode.avatars = property(lambda p: PageAvatars.objects.get( Django adds `_id` suffix to columns names in DB when using foreign keys, and since each NavigationNode has `id` property which equals related page's `id`, we can do this trick.

Post a comment

Based upon your reading habits, might I recommend:

Or, you might like:

Copyright © 2003,2004,2005,2006,2007,2008 GFranxman. All Rights Reserved

hosting: powered by: django. written in: python. controlled by: bzr. monsters by: monsterID.

You've been exposed to: {'Science & Technology': 1}