From 9fc6bd9f2bfea0cba8b7aa58b6c8995ff2f27289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ses=C3=B3stris=20Vieira?= Date: Fri, 21 Jan 2022 00:02:36 -0300 Subject: [PATCH] =?UTF-8?q?Prepara=20app=20Home=20para=20migra=C3=A7=C3=A3?= =?UTF-8?q?o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sigi/apps/home/templatetags/menus.py | 6 ++++-- sigi/settings/base.py | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sigi/apps/home/templatetags/menus.py b/sigi/apps/home/templatetags/menus.py index f8819fd..b99fbba 100644 --- a/sigi/apps/home/templatetags/menus.py +++ b/sigi/apps/home/templatetags/menus.py @@ -6,8 +6,10 @@ from django import template register = template.Library() -menus = yaml.load(open(dirname(__file__) + '/menu_conf.yaml', 'r')) - +menus = yaml.load( + open(dirname(__file__) + '/menu_conf.yaml', 'r'), + yaml.FullLoader +) @register.inclusion_tag('menus/menu.html', takes_context=True) def show_menu(context, menu_id): diff --git a/sigi/settings/base.py b/sigi/settings/base.py index 1456648..ec78912 100644 --- a/sigi/settings/base.py +++ b/sigi/settings/base.py @@ -24,6 +24,7 @@ INSTALLED_APPS = [ 'sigi.apps.contatos', 'sigi.apps.convenios', 'sigi.apps.eventos', + 'sigi.apps.home', 'sigi.apps.inventario', 'sigi.apps.ocorrencias', 'sigi.apps.servicos',