summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorFrank Wiles <frank@revsys.com>2019-07-13 14:01:07 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-07-15 15:24:44 +0200
commitde19a600f0d99980fe5be4bd98625b27eec8e830 (patch)
tree8bb7a072349b3b2dee0c08871ea0723ab213ba7c /docs
parenta39365c48e5d322ff111fc698234b20c9bd5fc65 (diff)
[2.2.x] Fixed explanation of how to automatically create tables in database.
Backport of c1b94e32fb3df25d72b5e9973da7928dddbc3a2e from master
Diffstat (limited to 'docs')
-rw-r--r--docs/intro/overview.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/intro/overview.txt b/docs/intro/overview.txt
index bd2eb58989..47af40533c 100644
--- a/docs/intro/overview.txt
+++ b/docs/intro/overview.txt
@@ -48,16 +48,18 @@ database-schema problems. Here's a quick example:
Install it
==========
-Next, run the Django command-line utility to create the database tables
+Next, run the Django command-line utilities to create the database tables
automatically:
.. console::
+ $ python manage.py makemigrations
$ python manage.py migrate
-The :djadmin:`migrate` command looks at all your available models and creates
-tables in your database for whichever tables don't already exist, as well as
-optionally providing :doc:`much richer schema control </topics/migrations>`.
+The :djadmin:`makemigrations` command looks at all your available models and
+creates migrations for whichever tables don't already exist. :djadmin:`migrate`
+runs the migrations and creates tables in your database, as well as optionally
+providing :doc:`much richer schema control </topics/migrations>`.
Enjoy the free API
==================