﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26773	DB Router not applied in introspection	Stefan Heinemann	nobody	"I am using multiple databases in my Django project. I do not have a default database, but I implemented a database router as documented here https://docs.djangoproject.com/en/1.9/topics/db/multi-db/#database-routers

I also have a management command which needs to check whether a Table exists or not. I did that basically with

{{{
from django.db import connection
table_name in connection.introspection.table_names()
}}}

Now I get following error:
{{{
django.core.exceptions.ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.
}}}

As it seems, the DatabaseRouter does not work correctly. Neither db_for_read() nor db_for_write() is called at that point."	Uncategorized	closed	Database layer (models, ORM)	1.9	Normal	invalid	database connection, db router		Unreviewed	0	0	0	0	0	0
