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',