From 8cc055157dde9e885bae29f4bad4518da427ce97 Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Mon, 7 Jan 2019 23:48:27 +0900 Subject: [PATCH] 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 --- doc/source/admin/sessions.rst | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/doc/source/admin/sessions.rst b/doc/source/admin/sessions.rst index a46de2ab5f..2af2ef1168 100644 --- a/doc/source/admin/sessions.rst +++ b/doc/source/admin/sessions.rst @@ -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.