doc: Use `manage.py migrate`

`syncdb` subcommand was deprecated in django 1.7 and subsequently
removed in 1.9. We need to use 'manage.py migrate'.

This commit also drops a sample output of 'manage.py migrate'.
I don't think we need to maintain this kind of output and
it can change per Django release.

Closes-Bug: #1777358

Reference: https://docs.djangoproject.com/en/dev/topics/http/sessions/#using-database-backed-sessions

Change-Id: Ib3a7e50584a8deb9bee409335464163b7b1258d1
This commit is contained in:
Akihiro Motoki 2019-01-07 23:48:27 +09:00
parent d0297a5ed0
commit 8cc055157d
1 changed files with 2 additions and 11 deletions

View File

@ -145,21 +145,12 @@ far beyond the scope of this documentation.
}
#. After configuring the ``local_settings.py`` file as shown, you can run the
:command:`manage.py syncdb` command to populate this newly created
:command:`manage.py migrate` command to populate this newly created
database.
.. code-block:: console
# /usr/share/openstack-dashboard/manage.py syncdb
#. The following output is returned:
.. code-block:: console
Installing custom SQL ...
Installing indexes ...
DEBUG:django.db.backends:(0.008) CREATE INDEX `django_session_c25c2c28` ON `django_session` (`expire_date`);; args=()
No fixtures found.
# /usr/share/openstack-dashboard/manage.py migrate
#. To avoid a warning when you restart Apache on Ubuntu, create a
``blackhole`` directory in the Dashboard directory, as follows.