tangentlabs/tangent-django-boilerplate — pull request #5 by a-musing-moose (2012-07-18 01:32:45+00:00)
Title: Db router fix

DATABASE_ROUTERS is not defined normally in default.py. As such when you disable an app with DISABLED_APPS ian exception is raised in settings.py as it tries to access DATABASE_ROUTERS.

This fix just wraps that section in an:
if 'DATABASE_ROUTERS' in local()