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.
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(page_id=p.id))Since 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.
Based upon your reading habits, might I recommend: Or, you might like: |
hosting: slicehost.com.
powered by: django.
written in: python.
controlled by: bzr.
monsters by: monsterID.
You've been exposed to: {'Science & Technology': 1}
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