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:
parent
d0297a5ed0
commit
8cc055157d
@ -145,21 +145,12 @@ far beyond the scope of this documentation.
|
|||||||
}
|
}
|
||||||
|
|
||||||
#. After configuring the ``local_settings.py`` file as shown, you can run the
|
#. 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.
|
database.
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
# /usr/share/openstack-dashboard/manage.py syncdb
|
# /usr/share/openstack-dashboard/manage.py migrate
|
||||||
|
|
||||||
#. 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.
|
|
||||||
|
|
||||||
#. To avoid a warning when you restart Apache on Ubuntu, create a
|
#. To avoid a warning when you restart Apache on Ubuntu, create a
|
||||||
``blackhole`` directory in the Dashboard directory, as follows.
|
``blackhole`` directory in the Dashboard directory, as follows.
|
||||||
|
Loading…
Reference in New Issue
Block a user