--
Ticket URL: <https://code.djangoproject.com/ticket/16743>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: anssi.kaariainen@… (added)
* needs_better_patch: => 0
* needs_docs: => 0
* needs_tests: => 0
* stage: Unreviewed => Accepted
Comment:
I checked this, and the problem is that if you want to get the help text,
you need to import the command class. The sql command classes use
DEFAULT_DB_ALIAS from django.db and that is enough to get the
ImproperlyConfigured Error. They uses the DEFAULT_DB_ALIAS as a default to
--database option. And you don't have the help text available if you don't
create the option. So, I don't see any trivial way to solve this. Allowing
the import of DEFAULT_DB_ALIAS without an error and then being really
careful about imports in commands would solve this, but that solution
isn't ideal.
--
Ticket URL: <https://code.djangoproject.com/ticket/16743#comment:1>
* has_patch: 0 => 1
Comment:
Possible approach to this issue. Tests are not trivial.
--
Ticket URL: <https://code.djangoproject.com/ticket/16743#comment:2>
* status: new => closed
* resolution: => worksforme
Comment:
Progress has been made on delaying some imports generally. With current
master, I cannot reproduce this issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/16743#comment:3>