Presented at PyCon 2008. Dive into the mechanisms Django uses to achieve some of its best-known features and you can take advantage of that knowledge to do some pretty amazing things.
worry about. If you wonder whether you need them, you don’t (the people who actually need them know with certainty that they need them, and don’t need an explanation about why). Tim Peters, comp.lang.python, December 22, 2002 “ “ “
Meta options into the special _meta class attribute Moving model fields out to an internal list Keeping track of model inheritance Collecting form fields into an internal list Merging fields from inherited forms
Memoized functions improve performance Lazy functions evaluate when accessed Turn middleware into per-view decorators Standard decorators are fair game Don’t forget inspect
text, preserving quoted passages Truncate text, preserving words or HTML Display a list of values in natural English Convert text to its phone number equivalent Powerful template engine is available Standard string formatting still works