Also this code contradicts PEP-20:
* Explicit is better than implicit
* Errors should never pass silently
For example if you use South, and have any 3rd party app, that can raise
ImproperlyConfigured exception you will get following error when you'll
try to migrate apps db schema:
{{{
Unknown command: 'migrate'
Type 'manage.py help' for usage.
}}}
What purpose of this catching? If something is improperly configured,
maybe user should know about it?
Please, review this ticket and remove this catching.
--
Ticket URL: <https://code.djangoproject.com/ticket/21634>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/21634#comment:1>
* stage: Unreviewed => Accepted
Comment:
As you can read in the comment, the purpose is to allow to run some
commands even when settings are not yet properly configured. It's obvious
that when you run `django-admin.py startproject`, no suitable settings
will be available.
In [a098bee1b9fa4df] (#19724), we already improved the message for the
`help` command in the case `ImproperlyConfigured` exception is raised. So
I suggest to extend a similar handling for all commands.
--
Ticket URL: <https://code.djangoproject.com/ticket/21634#comment:2>
* has_patch: 0 => 1
Comment:
PR: https://github.com/django/django/pull/2647
--
Ticket URL: <https://code.djangoproject.com/ticket/21634#comment:3>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/21634#comment:4>
* owner: nobody => erikr
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/21634#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"f5d4b45df106ad3d37783ef8ea424c030bb6b196"]:
{{{
#!CommitTicketReference repository=""
revision="f5d4b45df106ad3d37783ef8ea424c030bb6b196"
Fixed #21634 -- Prevented hiding ImproperlyConfigured when command not
found
Thanks nikolay...@gmail.com for the report.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21634#comment:6>