Browse Source

Prepara app Home para migração

revisaoSidenav
Sesostris Vieira 3 years ago
parent
commit
9fc6bd9f2b
  1. 6
      sigi/apps/home/templatetags/menus.py
  2. 1
      sigi/settings/base.py

6
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):

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

Loading…
Cancel
Save