Code

Opened 3 years ago

Closed 2 years ago

Last modified 2 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 poirier 3 years ago.
17166_v2.diff (2.0 KB) - added by krzysiumed 3 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 Changed 3 years ago by julien

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Bug to Cleanup/optimization

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

comment:2 Changed 3 years ago by poirier

  • Owner changed from nobody to poirier
  • Status changed from new to assigned

Changed 3 years ago by poirier

comment:3 Changed 3 years ago by poirier

  • Has patch set

comment:4 Changed 3 years ago by poirier

  • Owner changed from poirier to nobody
  • Status changed from assigned to new

Changed 3 years ago by krzysiumed

comment:5 Changed 3 years ago by krzysiumed

  • Cc krzysiumed@… added

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

comment:6 Changed 2 years ago by jezdez

  • Triage Stage changed from Accepted to Ready for checkin

comment:7 Changed 2 years ago by aaugustin

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

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 2 years ago by aaugustin

In [17559]:

(The changeset message doesn't reference this ticket)

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.