Django

Code

Ticket #4370 (closed: fixed)

Opened 2 years ago

Last modified 1 year ago

initial_data must have an extension for syncdb to recognize it

Reported by: gsf <gsf@perfectlygood.net> Assigned to: jacob
Milestone: Component: Documentation
Version: SVN Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

django-admin.diff (0.7 kB) - added by Simon G. <dev@simon.net.nz> on 05/26/07 08:17:42.
django-admin.2.diff (0.7 kB) - added by gsf <gsf@perfectlygood.net> on 05/31/07 13:24:29.
small grammatical change to first patch
django-admin.3.diff (0.8 kB) - added by gsf <gsf@perfectlygood.net> on 05/31/07 13:29:37.
and changed slightly again to parallel wording in loaddata section

Change History

05/26/07 08:17:42 changed by Simon G. <dev@simon.net.nz>

  • attachment django-admin.diff added.

05/26/07 08:17:59 changed by Simon G. <dev@simon.net.nz>

  • needs_better_patch changed.
  • has_patch set to 1.
  • stage changed from Unreviewed to Ready for checkin.
  • needs_tests changed.
  • needs_docs changed.

05/26/07 08:18:56 changed by Simon G. <dev@simon.net.nz>

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

05/31/07 13:24:29 changed by gsf <gsf@perfectlygood.net>

  • attachment django-admin.2.diff added.

small grammatical change to first patch

05/31/07 13:29:37 changed by gsf <gsf@perfectlygood.net>

  • attachment django-admin.3.diff added.

and changed slightly again to parallel wording in loaddata section

06/01/07 05:11:44 changed by mtredinnick

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #4370 (initial_data must have an extension for syncdb to recognize it)




Change Properties
Action