Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#17166 closed Cleanup/optimization (fixed)

The fixture documentation tells nowhere that you can (should?) use FIXTURE_DIRS in your settings.py

Reported by: anonymous Owned by: nobody
Component: Documentation Version: 1.3
Severity: Normal Keywords:
Cc: krzysiumed@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

On this page https://docs.djangoproject.com/en/1.3/howto/initial-data/, that I believe, is the first documentation you should read about fixtures, there isn't any mention of the FIXTURE_DIRS tuple that can (should? I didn't managed to make fixtures works without it) be set in the settings.py.

Attachments (2)

17166.diff (1.8 KB) - added by Dan Poirier 5 years ago.
17166_v2.diff (2.0 KB) - added by Christopher Medrela 5 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 5 years ago by Julien Phalip

Triage Stage: UnreviewedAccepted
Type: BugCleanup/optimization

FIXTURE_DIRS is for fixtures that live outside of apps. It should indeed be documented on that page.

comment:2 Changed 5 years ago by Dan Poirier

Owner: changed from nobody to Dan Poirier
Status: newassigned

Changed 5 years ago by Dan Poirier

Attachment: 17166.diff added

comment:3 Changed 5 years ago by Dan Poirier

Has patch: set

comment:4 Changed 5 years ago by Dan Poirier

Owner: changed from Dan Poirier to nobody
Status: assignednew

Changed 5 years ago by Christopher Medrela

Attachment: 17166_v2.diff added

comment:5 Changed 5 years ago by Christopher Medrela

Cc: krzysiumed@… added

I've sent another version, in my opinion slightly better.

comment:6 Changed 5 years ago by Jannis Leidel

Triage Stage: AcceptedReady for checkin

comment:7 Changed 5 years ago by Aymeric Augustin

Resolution: fixed
Status: newclosed

In [17558]:

Fixed #17166 -- Documented how FIXTURE_DIRS works in the inital data how-to, and edited related bits in the settings reference.

Performed minor edits for consistency while I was there.

comment:8 Changed 5 years ago by Aymeric Augustin

In [17559]:

(The changeset message doesn't reference this ticket)

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