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.
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.
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.