Any reasons, why do we silently ignore the fact of missing fixture file
ATM?
If none, I can try working on a patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/21549>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* component: Uncategorized => Core (Management commands)
* needs_tests: => 0
* version: 1.6 => master
* needs_docs: => 0
* stage: Unreviewed => Accepted
Comment:
The current behavior of issuing a warning is indeed kind of odd.
--
Ticket URL: <https://code.djangoproject.com/ticket/21549#comment:1>
* status: new => assigned
* owner: nobody => bugZPDX
Comment:
The loaddata function in find_fixtures via load_label warns properly,
however something in the interactive command is masking the error. I will
continue investigating the issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/21549#comment:2>
* owner: bugZPDX =>
* status: assigned => new
* type: Bug => Cleanup/optimization
* easy: 0 => 1
Comment:
The idea is to change
[https://github.com/django/django/blob/98839e906632dfe77c6f6906d61d62868a0541dc/django/core/management/commands/loaddata.py#L241-L243
the warning] to `CommandError`. The warning about "No fixture data found"
in that same file might be able to be changed as well. Some tests will
need to be adapted and we'll need a mention in the release notes.
--
Ticket URL: <https://code.djangoproject.com/ticket/21549#comment:3>
* status: new => assigned
* owner: => soon
--
Ticket URL: <https://code.djangoproject.com/ticket/21549#comment:4>
Comment (by soon):
Replying to [comment:3 timgraham]:
> The warning about "No fixture data found" in that same file might be
able to be changed as well. Some tests will need to be adapted and we'll
need a mention in the release notes.
''"No fixture data found"'' was an error before 2013, however it has been
changed to a warning with [https://github.com/django/django/pull/799 PR
#799]. Should it be implemented as error again?
--
Ticket URL: <https://code.djangoproject.com/ticket/21549#comment:5>
Comment (by timgraham):
Thanks for that research. We can keep it as is.
--
Ticket URL: <https://code.djangoproject.com/ticket/21549#comment:6>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"d5b90c8e120687863c1d41cf92a4cdb11413ad7f" d5b90c8e]:
{{{
#!CommitTicketReference repository=""
revision="d5b90c8e120687863c1d41cf92a4cdb11413ad7f"
Fixed #21549 -- Made loaddata's 'fixture not found' warning an exception.
Thanks to mpasternak for the report and Tim Graham for the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/21549#comment:7>