diff options
| author | julien 'pouete' Godin <julien@pouete.net> | 2014-04-08 12:52:59 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-04-09 19:25:07 -0400 |
| commit | 071c9337750b296d198cced56f3ffad0e176afb6 (patch) | |
| tree | fa302b05da20287413c8af4f591cc0d5ff2f27f6 /docs/howto/initial-data.txt | |
| parent | 5f2f47fdfcc063a60ad1c3688e0c6d44b066d549 (diff) | |
Fixed #22401 -- Deprecated regular expression parsing of initial SQL in favor of installing sqlparse.
Diffstat (limited to 'docs/howto/initial-data.txt')
| -rw-r--r-- | docs/howto/initial-data.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/howto/initial-data.txt b/docs/howto/initial-data.txt index d003db6497..fc59132ccb 100644 --- a/docs/howto/initial-data.txt +++ b/docs/howto/initial-data.txt @@ -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 |
