From 5f325f86bed0822416b11a558554db3069dcf65b Mon Sep 17 00:00:00 2001 From: Marc Gariepy Date: Fri, 2 Jun 2017 10:09:46 -0400 Subject: [PATCH] Use migrate for the DB and NullHandler config syncdb is deprecated since Django 1.7 and removed in 1.9, using the "new" command. Configure the logging NullHandler properly Change-Id: If1365e76cdd0f66b7ef2a90cc52b4692f68a149f --- tasks/horizon_db_setup.yml | 2 +- templates/horizon_local_settings.py.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/horizon_db_setup.yml b/tasks/horizon_db_setup.yml index a46c708e..80b65fc3 100644 --- a/tasks/horizon_db_setup.yml +++ b/tasks/horizon_db_setup.yml @@ -14,7 +14,7 @@ # limitations under the License. - name: Perform a horizon DB sync - command: "{{ horizon_bin }}/horizon-manage.py syncdb --noinput" + command: "{{ horizon_bin }}/horizon-manage.py migrate --noinput" become: yes become_user: "{{ horizon_system_user_name }}" changed_when: false diff --git a/templates/horizon_local_settings.py.j2 b/templates/horizon_local_settings.py.j2 index bcf02415..059adb72 100644 --- a/templates/horizon_local_settings.py.j2 +++ b/templates/horizon_local_settings.py.j2 @@ -456,7 +456,7 @@ LOGGING = { 'handlers': { 'null': { 'level': 'DEBUG', - 'class': 'django.utils.log.NullHandler', + 'class': 'logging.NullHandler', }, 'console': { # Set the level to "DEBUG" for verbose output logging.