Opened 8 years ago

Closed 8 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: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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@…> 8 years ago.
django-admin.2.diff (766 bytes) - added by gsf <gsf@…> 8 years ago.
small grammatical change to first patch
django-admin.3.diff (772 bytes) - added by gsf <gsf@…> 8 years ago.
and changed slightly again to parallel wording in loaddata section

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by Simon G. <dev@…>

comment:1 Changed 8 years ago by Simon G. <dev@…>

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Ready for checkin

comment:2 Changed 8 years ago by Simon G. <dev@…>

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

Changed 8 years ago by gsf <gsf@…>

small grammatical change to first patch

Changed 8 years ago by gsf <gsf@…>

and changed slightly again to parallel wording in loaddata section

comment:3 Changed 8 years ago by mtredinnick

  • Resolution set to fixed
  • Status changed from new to closed

(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