Ticket #17166: 17166.diff

File 17166.diff, 1.8 KB (added by Dan Poirier, 12 years ago)
  • docs/howto/initial-data.txt

    diff --git a/docs/howto/initial-data.txt b/docs/howto/initial-data.txt
    index dbb5b61..67085ab 100644
    a b but initial SQL is also quite a bit more flexible.  
    1212
    1313.. _initial data as sql: `providing initial sql data`_
    1414.. _initial data via fixtures: `providing initial data with fixtures`_
     15.. _initial-data-via-fixtures:
    1516
    1617Providing initial data with fixtures
    1718====================================
    be loaded every time you run :djadmin:`syncdb`. This is extremely convenient,  
    8081but be careful: remember that the data will be refreshed *every time* you run
    8182:djadmin:`syncdb`. So don't use ``initial_data`` for data you'll want to edit.
    8283
     84Where Django finds fixture files
     85--------------------------------
     86
     87By default, Django looks in the ``fixtures`` directory inside each app for
     88fixtures. You can set the :setting:`FIXTURE_DIRS` setting to a list of
     89additional directories where Django should look.
     90
     91When running :djadmin:`manage.py loaddata <loaddata>`, you can also
     92specify an absolute path to a fixture file, which overrides searching
     93the usual directories.
     94
    8395.. seealso::
    8496
    8597    Fixtures are also used by the :ref:`testing framework
  • docs/ref/settings.txt

    diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
    index 20366e3..1a0a63c 100644
    a b Default: ``()`` (Empty tuple)  
    10741074
    10751075List of locations of the fixture data files, in search order. Note that
    10761076these paths should use Unix-style forward slashes, even on Windows. See
    1077 :doc:`/topics/testing`.
     1077:doc:`/topics/testing` and :ref:`initial-data-via-fixtures`.
     1078
     1079Django looks in the ``fixtures`` directory of each app by default. This
     1080setting adds other places where Django will look.
    10781081
    10791082FORCE_SCRIPT_NAME
    10801083------------------
Back to Top