Django is an awesome development platform for web applications. With such features as database abstraction, template/view/url separation, built-in authentication with interchangeable backends, it’s made web development much more enjoyable.
We use Django in Review Board with much success. Over time, as we’ve come to develop new features, we realized that much of our codebase was useful outside of Review Board and, bit by bit, moved pieces into a library we call Djblets.
What does Djblets do?
A bit of everything, really. Any time we have useful functionality that isn’t tied to Review Board, we put it here.
Djblet’s feature list currently consists of:
- Authentication improvements, making it easy to register and login in one step, seamlessly, handle password recovery, and more.
- Flexible datagrids for displaying data in a paginated list with user-specific column customization, ordering and sorting.
- Decorators to drastically simplify creation of simple and block template tags.
- Caching functions for calling a function and caching the result if the data isn’t already in the cache, and a special URL pattern matcher that prevents caching of any contained URLs.
- Unit testing utility classes.
And of course more little things here and there.
Downloading Djblets
Djblets is not a released app, but it’s pretty stable and well tested. You can check out a copy from our SVN repository, or automatically include it in your own repository through an svn:externals entry.
Djblets is licensed under the MIT license, making it usable in most projects.
Using Djblets
Over time I’ll be writing articles on using the many features of Djblets. See the other posts in the series, or dig around the Djblets source code.
Please tell me that “djblets” is pronounced “giblets“.
– Chris
I would like to use the datagrid feature of djblets. Do you have any documentation or examples for it? I just need to know how to get started. Thanks!
Tim: Datagrids will be the topic of the next post. There’s a couple things I want to do to them first in order to make them easier to use out of the box.
Yes, now its a bit[0] clear!
thx for helping. I like to use RegisterContext and have had some probs.