Opened 17 years ago

Closed 17 years ago

#4370 closed (fixed)

initial_data must have an extension for syncdb to recognize it

Reported by: gsf <gsf@…> Owned by: Jacob
Component: Documentation Version: dev
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The following, from http://www.djangoproject.com/documentation/django-admin/, should mention that initial_data must have the .json or .xml extension for syncdb to see it:

syncdb will also search for and install any fixture named initial_data. See the documentation for loaddata for 
details on the specification of fixture data files.

Perhaps replace with

syncdb will also search for and install any fixture named initial_data.json or initial_data.xml. See the 
documentation for loaddata for details on the specification of fixture data files.

Attachments (3)

django-admin.diff (764 bytes ) - added by Simon G. <dev@…> 17 years ago.
django-admin.2.diff (766 bytes ) - added by gsf <gsf@…> 17 years ago.
small grammatical change to first patch
django-admin.3.diff (772 bytes ) - added by gsf <gsf@…> 17 years ago.
and changed slightly again to parallel wording in loaddata section

Download all attachments as: .zip

Change History (6)

by Simon G. <dev@…>, 17 years ago

Attachment: django-admin.diff added

comment:1 by Simon G. <dev@…>, 17 years ago

Has patch: set
Triage Stage: UnreviewedReady for checkin

comment:2 by Simon G. <dev@…>, 17 years ago

This is mentioned in the loaddata section, but the attached patch briefly notes this in the {{{initial_data}} section too.

by gsf <gsf@…>, 17 years ago

Attachment: django-admin.2.diff added

small grammatical change to first patch

by gsf <gsf@…>, 17 years ago

Attachment: django-admin.3.diff added

and changed slightly again to parallel wording in loaddata section

comment:3 by Malcolm Tredinnick, 17 years ago

Resolution: fixed
Status: newclosed

(In [5405]) Fixed #4370 -- Clarified how syncdb searches for initial data files. Thanks,
Simon Greenhill and gsf@….

Note: See TracTickets for help on using tickets.
Back to Top