#23102: SQL-Management does not work with DATABASE_ROUTERS set
--------------------------------------------+----------------------
Reporter: manuel.gysin@… | Owner: nobody
Type: Bug | Status: new
Component: Core (Management commands) | Version: 1.7-rc-1
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------------+----------------------
Hello,
If you set DATABASE_ROUTERS in settings.py, none of the sql-management
commands are working:
{{{
[root@dgweb Demo]# python manage.py sqlall SampleModel
[root@dgweb Demo]#
[root@dgweb Demo]# python manage.py sql SampleMode
[root@dgweb Demo]#
}}}
As soon DATABASE_ROUTERS is removed, things start working again:
{{{
[root@dgweb Demo]# python manage.py sqlall SampleModel
BEGIN;
CREATE TABLE "SampleModel_location" (
"id" integer NOT NULL PRIMARY KEY AUTOINCREMENT,
"name" varchar(50) NOT NULL
)
;
COMMIT;
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23102>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/073.99517caa8f38f2c8315c68f36713ab3c%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.