-
Website
http://www.davidcramer.net/ -
Original page
http://www.davidcramer.net/code/375/singletons-in-django.html -
Subscribe
All Comments -
Community
-
Top Commenters
-
Rob Hudson
1 comment · 3 points
-
creeva
3 comments · 1 points
-
David Cramer
93 comments · 1 points
-
MsUnderestimated
1 comment · 14 points
-
Matt B.
1 comment · 2 points
-
-
Popular Threads
1. Per your explanation, it wasn't strictly necessary to define Article as a SingleModel, correct?
2. Given the obvious benefits, are there any reasons not to use this class for all models? Am I missing something crucial here?
The biggest thing about this, while it IS an obvious performance boost, its not the sole intention of the project. Having unique instances of an object in memory can solve a lot of other issues as well.