Ticket #22444: 22444.diff

File 22444.diff, 881 bytes (added by Tim Graham, 10 years ago)
  • docs/howto/initial-data.txt

    diff --git a/docs/howto/initial-data.txt b/docs/howto/initial-data.txt
    index d003db6..2cc6a05 100644
    a b again, you'll wipe out any changes you've made.  
    7777Automatically loading initial data fixtures
    7878-------------------------------------------
    7979
     80.. deprecated:: 1.7
     81
     82    If an application uses migrations, there is no automatic loading of
     83    fixtures. Since migrations will be required for applications in Django 1.9,
     84    this behavior is considered deprecated. If you want to load initial data
     85    for an app, we suggest you do it in a migration.
     86
    8087If you create a fixture named ``initial_data.[xml/yaml/json]``, that fixture will
    8188be loaded every time you run :djadmin:`migrate`. This is extremely convenient,
    8289but be careful: remember that the data will be refreshed *every time* you run
Back to Top