This link has been bookmarked by 62 people . It was first bookmarked on 07 Oct 2008, by James Tinsky.
-
16 Feb 12
-
01 Nov 11
-
28 Sep 11
-
27 Sep 11
-
01 Jun 11
-
09 Dec 10
-
28 Nov 10
-
17 Jul 10
-
27 Jun 10
-
01 Jun 10
-
03 Feb 10
-
17 Dec 09
-
23 Nov 09
-
29 Oct 09
-
09 Oct 09
-
13 Aug 09
-
05 Aug 09
-
28 Jul 09
-
24 Jun 09
-
17 Mar 09
-
04 Jan 09
-
22 Dec 08
-
17 Dec 08
-
01 Dec 08
-
30 Nov 08
-
19 Nov 08
-
Big list of Django tips
-
Writing managers is really simple, and they provide a better user interface to your code. This code snippet simply adds a latest() method to the default objects manager
class ForecastDayManager(Manager): def __init__(self, *args, **kwargs): super(ForecastDayManager, self).__init__(*args, **kwargs) def latest(self): return self.get_query_set().order_by('forecast_date')[0]It can be called
ForecastDay.objects.latest(). This is a trivial example, but there is a lot of power that lies in this functionality.
-
-
17 Nov 08
-
16 Nov 08
Daniel AndrlikThis is a great collection of Django tips. Worth reading through if you plan on doing any work with Django.
-
11 Nov 08
-
05 Nov 08
-
30 Oct 08
-
29 Oct 08
-
23 Oct 08
-
20 Oct 08
-
11 Oct 08
-
10 Oct 08
-
09 Oct 08
-
Shane GraberWe were talking about things that we wish we had known before while developing for Django the other day in IRC. I proclaimed that we should write them down somewhere. So I'm writing a post to get this effort started. Please feel free to leave comments wit
-
08 Oct 08
-
Tip NgDjango mostly just pointers, and not full-blown writeups, just more of a big list of stuff you should think about. I think these tips will really help out new people when they're trying to get the hang of Django.
-
07 Oct 08
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.