Db router fix #5

Closed
wants to merge 2 commits into
from

Projects

None yet

2 participants

@a-musing-moose

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

@codeinthehole

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