On 8/21/2010 1:39 PM, widoyo wrote: > It could be better if you omit '_ALL' at URL > > So: > /ranking/de/ # for Germany ranking Nation wide > /ranking/ # for all country > > can put summary of ranking for such URL, instead of list of all > ranking nation or all country. > The point being, you can start out with a queryset that specifies all items, then optionally apply filters for the restrictions specified in the URL. Querysets are"lazy" (they don't actually touch the database until they *have* to) so this isn't going to involve huge database queries except when you try to rank across all countries.
regards Steve > Widoyo > > On Aug 21, 7:35 am, Uwe Schuerkamp <uwe.schuerk...@gmail.com> wrote: >> ranking/de/hf Country: Germany, District: Herford (I'll be using >> german number plates here to discriminate among districts >> /ranking/de/_ALL Nation-Wide Ranking for Germany >> /ranking/gr/agn Agios Nikolaos, Greece: Ranking of observers in >> Agios Nik. on Crete, Greece >> /ranking/_ALL/_ALL world-wide ranking >> > -- DjangoCon US 2010 September 7-9 http://djangocon.us/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.