mirror of https://github.com/django/django.git
Fixed explanation of how to automatically create tables in database.
This commit is contained in:
parent
858cfd74e9
commit
c1b94e32fb
|
@ -48,16 +48,18 @@ database-schema problems. Here's a quick example:
|
||||||
Install it
|
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:
|
automatically:
|
||||||
|
|
||||||
.. console::
|
.. console::
|
||||||
|
|
||||||
|
$ python manage.py makemigrations
|
||||||
$ python manage.py migrate
|
$ python manage.py migrate
|
||||||
|
|
||||||
The :djadmin:`migrate` command looks at all your available models and creates
|
The :djadmin:`makemigrations` command looks at all your available models and
|
||||||
tables in your database for whichever tables don't already exist, as well as
|
creates migrations for whichever tables don't already exist. :djadmin:`migrate`
|
||||||
optionally providing :doc:`much richer schema control </topics/migrations>`.
|
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
|
Enjoy the free API
|
||||||
==================
|
==================
|
||||||
|
|
Loading…
Reference in New Issue