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
This commit is contained in:
Marc Gariepy 2017-06-02 10:09:46 -04:00
parent 1283febbb1
commit 5f325f86be
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
# limitations under the License. # limitations under the License.
- name: Perform a horizon DB sync - 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: yes
become_user: "{{ horizon_system_user_name }}" become_user: "{{ horizon_system_user_name }}"
changed_when: false changed_when: false

View File

@ -456,7 +456,7 @@ LOGGING = {
'handlers': { 'handlers': {
'null': { 'null': {
'level': 'DEBUG', 'level': 'DEBUG',
'class': 'django.utils.log.NullHandler', 'class': 'logging.NullHandler',
}, },
'console': { 'console': {
# Set the level to "DEBUG" for verbose output logging. # Set the level to "DEBUG" for verbose output logging.