Opened 6 years ago

Closed 6 years ago

Last modified 6 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:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

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 Changed 6 years ago by russellm

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

(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 Changed 6 years ago by russellm

(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 Changed 6 years ago by jbronn

(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