Db router fix #5

wants to merge 2 commits into


None yet

2 participants


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()


I cherry-picked the DB commit onto master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment