Fixed #22401 -- Deprecated regular expression parsing of initial SQL in favor of installing sqlparse.

This commit is contained in:
julien 'pouete' Godin 2014-04-08 12:52:59 +02:00 committed by Tim Graham
parent 5f2f47fdfc
commit 071c933775
6 changed files with 48 additions and 13 deletions

View file

@ -103,6 +103,14 @@ directories.
Providing initial SQL data
==========================
.. deprecated:: 1.8
Historically this functionality has used regular expression parsing of the
initial SQL which is a bit buggy. This parsing is now deprecated in favor
of installing `sqlparse <https://pypi.python.org/pypi/sqlparse>`_; doing so
will be required for this functionality in Django 2.0. You can install it
using ``pip install sqlparse``.
Django provides a hook for passing the database arbitrary SQL that's executed
just after the CREATE TABLE statements when you run :djadmin:`migrate`. You can
use this hook to populate default records, or you could also create SQL