diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2011-04-17 20:45:06 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2011-04-17 20:45:06 +0000 |
| commit | f8495d2371d78468b8424e300a88cb1e5c08c342 (patch) | |
| tree | 15ca2c707b3b16d7865e5d1cf67ef7eb0ea07189 /docs/howto/initial-data.txt | |
| parent | d78e08f4a0129adad0a9ee86d7af3d7203f5c564 (diff) | |
Fixed #15822 -- Removed references to the v1 postgresql backend (which has been removed). Thanks for the patch, aaugustin
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16034 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/howto/initial-data.txt')
| -rw-r--r-- | docs/howto/initial-data.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/howto/initial-data.txt b/docs/howto/initial-data.txt index dd6a099b9d..dbb5b61d0a 100644 --- a/docs/howto/initial-data.txt +++ b/docs/howto/initial-data.txt @@ -136,18 +136,18 @@ Database-backend-specific SQL data ---------------------------------- There's also a hook for backend-specific SQL data. For example, you -can have separate initial-data files for PostgreSQL and MySQL. For +can have separate initial-data files for PostgreSQL and SQLite. For each app, Django looks for a file called ``<appname>/sql/<modelname>.<backend>.sql``, where ``<appname>`` is your app directory, ``<modelname>`` is the model's name in lowercase and ``<backend>`` is the last part of the module name provided for the :setting:`ENGINE` in your settings file (e.g., if you have defined a database with an :setting:`ENGINE` value of -``django.db.backends.postgresql``, Django will look for -``<appname>/sql/<modelname>.postgresql.sql``). +``django.db.backends.sqlite3``, Django will look for +``<appname>/sql/<modelname>.sqlite3.sql``). Backend-specific SQL data is executed before non-backend-specific SQL data. For example, if your app contains the files ``sql/person.sql`` -and ``sql/person.postgresql.sql`` and you're installing the app on -PostgreSQL, Django will execute the contents of -``sql/person.postgresql.sql`` first, then ``sql/person.sql``. +and ``sql/person.sqlite3.sql`` and you're installing the app on +SQLite, Django will execute the contents of +``sql/person.sqlite.sql`` first, then ``sql/person.sql``. |
