Re: [Django] #13680: loaddata should issue a warning when attempting to load data using an unknown serialization format even when it is unspecified

5 views
Skip to first unread message

Django

unread,
Apr 14, 2026, 12:16:25 AMApr 14
to django-...@googlegroups.com
#13680: loaddata should issue a warning when attempting to load data using an
unknown serialization format even when it is unspecified
--------------------------------------+------------------------------------
Reporter: stevecrozz@… | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Core (Serialization) | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by harshitha1869):

Hi, I would like to work on this issue.

I understand that when loading fixtures without specifying the extension,
Django fails to detect unsupported serialization formats and shows "No
fixtures found" instead of a helpful warning.

I will start by reproducing the issue locally and then explore how fixture
discovery works in loaddata.

Please let me know if there are any specific considerations.
--
Ticket URL: <https://code.djangoproject.com/ticket/13680#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
3:43 AM (18 hours ago) 3:43 AM
to django-...@googlegroups.com
#13680: loaddata should issue a warning when attempting to load data using an
unknown serialization format even when it is unspecified
-------------------------------------+-------------------------------------
Reporter: stevecrozz@… | Owner:
Type: | youngjaekwon
Cleanup/optimization | Status: assigned
Component: Core | Version: dev
(Serialization) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by youngjaekwon):

* owner: nobody => youngjaekwon
* status: new => assigned

Comment:

I'm going to work on this. I've reproduced the issue on the current main
branch — running `loaddata test_data` fails with "No fixture named
'test_data' found" even when `test_data.bogus` exists in the fixtures
directory, with no hint that the format is unrecognized.

Planning to add a fallback check: if no fixture matches the known
serialization formats, scan for files with the same basename and
report the unknown extension explicitly.
--
Ticket URL: <https://code.djangoproject.com/ticket/13680#comment:8>

Django

unread,
5:41 AM (16 hours ago) 5:41 AM
to django-...@googlegroups.com
#13680: loaddata should issue a warning when attempting to load data using an
unknown serialization format even when it is unspecified
-------------------------------------+-------------------------------------
Reporter: stevecrozz@… | Owner: youngjae
Type: | kwon
Cleanup/optimization | Status: assigned
Component: Core | Version: dev
(Serialization) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by youngjae kwon):

* has_patch: 0 => 1

Comment:

PR submitted: https://github.com/django/django/pull/21194
--
Ticket URL: <https://code.djangoproject.com/ticket/13680#comment:9>
Reply all
Reply to author
Forward
0 new messages