Ticket #17166: 17166_v2.diff

File 17166_v2.diff, 2.0 KB (added by Christopher Medrela, 12 years ago)
  • docs/howto/initial-data.txt

    diff --git a/docs/howto/initial-data.txt b/docs/howto/initial-data.txt
    index dbb5b61..7c7519b 100644
    a b but initial SQL is also quite a bit more flexible.  
    1313.. _initial data as sql: `providing initial sql data`_
    1414.. _initial data via fixtures: `providing initial data with fixtures`_
    1515
     16.. _initial-data-via-fixtures:
     17
    1618Providing initial data with fixtures
    1719====================================
    1820
    be loaded every time you run :djadmin:`syncdb`. This is extremely convenient,  
    8082but be careful: remember that the data will be refreshed *every time* you run
    8183:djadmin:`syncdb`. So don't use ``initial_data`` for data you'll want to edit.
    8284
     85Where Django finds fixture files
     86--------------------------------
     87
     88By default, Django looks in the ``fixtures`` directory inside each app for
     89fixtures. You can set the :setting:`FIXTURE_DIRS` setting to a list of
     90additional directories where Django should look.
     91
     92When running :djadmin:`manage.py loaddata <loaddata>`, you can also
     93specify an absolute path to a fixture file, which overrides searching
     94the usual directories.
     95
    8396.. seealso::
    8497
    8598    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..3b9ea17 100644
    a b FIXTURE_DIRS  
    10721072
    10731073Default: ``()`` (Empty tuple)
    10741074
    1075 List of locations of the fixture data files, in search order. Note that
    1076 these paths should use Unix-style forward slashes, even on Windows. See
    1077 :doc:`/topics/testing`.
     1075Django looks for the fixture data files in the ``fixtures`` directory of each
     1076app by default, but you can set list of additional locations (in search order)
     1077with this setting.
     1078
     1079Note that these paths should use Unix-style forward slashes, even on Windows.
     1080See :doc:`/topics/testing` and :ref:`initial-data-via-fixtures`.
    10781081
    10791082FORCE_SCRIPT_NAME
    10801083------------------
Back to Top