Code-sharing Update

When we decided to move SUMO to a new platform, one of the reasons we chose Django was code sharing and reuse—specifically that SUMO and AMO would be able to share code, meaning both teams would save time and see benefits.

So how is that going? Were we right in our assumption here? The code we’re sharing so far:

[MultiDB Router](http://github.com/jbalogh/django-multidb-router)
A Django DB router that supports reading from a pool of slave databases.
[Cache Machine](http://github.com/jbalogh/django-cache-machine)
A powerful caching library for Django that, in particular, provides automatic object caching and invalidation through the ORM.
[Jingo](http://github.com/jbalogh/jingo)
An adapter for using [Jinja2](http://jinja.pocoo.org/2/) templates with Django.
[Django-Nose](http://github.com/jbalogh/django-nose)
A test runner for Django using [Nose](http://somethingaboutorange.com/mrl/projects/nose/0.11.2/).
[Django Debug Cache Panel](http://github.com/jbalogh/django-debug-cache-panel)
Adds a cache panel for [Django Debug Toolbar](http://github.com/robhudson/django-debug-toolbar).
[Test-Utils](http://github.com/jbalogh/test-utils)
Tools we use testing in the Django/Jinja2/Nose setup.
[Bleach](http://github.com/jsocol/bleach)
A library for sanitizing and linkifying user HTML, based on [html5lib](http://code.google.com/p/html5lib/).
[Fixture Magic](http://github.com/davedash/django-fixture-magic)
Django management commands for working with fixture data.
Additionally, we expect both teams will probably use the following, eventually:
[DidYouMean](http://github.com/jsocol/didyoumean)
A wrapper for [Hunspell](http://hunspell.sourceforge.net/), using [PyHunspell](http://code.google.com/p/pyhunspell/) to provide spelling suggestions for searches.
[Django Gearman](http://github.com/fwenzel/django-gearman)
Provides an easier interface from Django to the Python [Gearman](http://gearman.org/) bindings.
AMO’s JS and CSS minification
AMO has already solved the problem of JS and CSS minification with Django and Jinja2.
And it’s not a released library, but SUMO has also been able to directly reuse code from AMO to simplify pagination.

Overall, it seems like we’re doing really well on this! It’s great to see the projects not just sharing code, but packaging and publishing it on Github and PyPI. If any of the above is useful to you, go ahead and try it out! You can open issues with any of the packages on Github, or find us in #webdev in irc.mozilla.org.