Hunting for Treasure in Django
summary
Finds and demonstrates concrete utilities not broad concepts: cached_property stores a computed value on the instance so a heavy API call or aggregated queryset becomes one real computation when you list() it first time, import_string turns a dotted path into an actual callable or class and raises ImportError if wrong so configurable hooks validate, lazy and LazyObject defer instantiation enabling per-user S3 storage until first access, and RequestFactory builds real Django Request objects to unit test middleware and view logic without full client overhead
AI-written summary · about
chapters (19)
- 0:00Intro
- 0:19SEBASTIAN VETTER
- 0:58LET'S FIND SOME TREASURE
- 1:09AWESOME DJANGO FEATURES
- 1:22HIDDEN TREASURES
- 2:02WHERE YOU FIND THEM
- 3:41WHAT IT DOES
- 3:56WHAT IT LOOKS LIKE
- 4:34IMAGINE A COLOR API
- 5:02HERE'S THE PROBLEM
- 5:57USING THE CACHED PROPERTY
- 7:21TREASURE FOUND
- 8:42IMAGINE A WEB STORE
- 12:47IMAGINE PER-USER STORAGE
- 13:37lazy TO THE RESCUE
- 15:05Request Factory
- 17:06IMAGINE A MIDDLEWARE
- 18:45THE TREASURE ALL YOURS
- 19:42ANY QUESTIONS?
related talks
01h 06mEffective Django
32mEasy, Breezy, Beautiful... Django Unit Tests with Colleen Dunlap
53mDjango productivity tips and tricks
53mDjango productivity tips and tricks
53mDjango: a Data Shovel With a Future
28mLightning talks
54mAdvanced Aspects of the Django Ecosystem: Haystack, Celery & Fabric
47mHigh Performance Django at Ten: Old Tricks & New Picks
