Willem Van Onsem
Willem Van Onsem is a Django developer located in Belgium.
Session
09-23
10:40
45min
path('/user/<user.username:user>/', view_profile)
Willem Van Onsem
Most people only use the builtin path converters. We show how one can not only add a custom pattern, but also automatically convert this to a Python object, and even to a (lazy) model object. This can reduce the number of roundtrips to the database. We also show how we can use this to "stack" queries together, and for some databases, use only one query to fetch all objects. Finally we show how we can programmatically check if two URL paths overlap (completely).
Grand Ballroom III