Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#9572 closed (fixed)

Django Initial Data HOWTO specifies wrong file extension for YAML initial_data fixture

Reported by: django@… Owned by: nobody
Component: Documentation Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The current version of the docs (Initial Data HOWTO) suggest inital_data should have a .yml file extension in order to be used with manage.py syncdb.
However, this file is not detected - the correct extension appears to be .yaml:

Saving an "initial_data.yml" file gives the following relevant lines when used with manage.py syncdb --verbosity=2:

Checking '../tgt/reviews/fixtures' for fixtures...
Trying '../tgt/reviews/fixtures' for xml fixture 'initial_data'...
No yaml fixture 'initial_data' in '../tgt/reviews/fixtures'.

Saving an "initial_data.yaml" file gives the following relevant lines when used with manage.py syncdb --verbosity=2

Checking '../tgt/reviews/fixtures' for fixtures...
Trying '../tgt/reviews/fixtures' for yaml fixture 'initial_data'...
Installing yaml fixture 'initial_data' from '../tgt/reviews/fixtures'.

Change History (3)

comment:1 by Russell Keith-Magee, 16 years ago

Resolution: fixed
Status: newclosed

(In [9401]) Fixed #9572 -- Corrected some documentation that misleadingly gave the extension for YAML fixtures as YML. Thanks to django@… for the report.

comment:2 by Russell Keith-Magee, 16 years ago

(In [9402]) [1.0.X] Fixed #9572 -- Corrected some documentation that misleadingly gave the extension for YAML fixtures as YML. Thanks to django@… for the report.

Merge from trunk of [9401]

comment:3 by jbronn, 15 years ago

(In [9572]) Fixed #9572 -- use opts argument. Thanks SeanL for bug report and patch.

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