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.