Browse Source

Remoção de coisas desnecessárias

pull/184/head
Sesóstris Vieira 2 months ago
parent
commit
55b30c1d7e
  1. 13
      sigi/apps/home/templatetags/menus.py
  2. 1
      sigi/settings.py

13
sigi/apps/home/templatetags/menus.py

@ -1,13 +0,0 @@
import yaml
from django import template
from django.conf import settings
register = template.Library()
with open(settings.MENU_FILE, "r") as menu_file:
menus = yaml.load(menu_file, yaml.FullLoader)
@register.inclusion_tag("menus/menu.html", takes_context=True)
def show_menu(context, menu_id):
return {"menu_items": menus[menu_id], "request": context.request}

1
sigi/settings.py

@ -283,7 +283,6 @@ REST_FRAMEWORK = {
# SIGI specific settings
MENU_FILE = BASE_DIR / "menu_conf.yaml"
HOSPEDAGEM_PATH = Path(env("HOSPEDAGEM_PATH", default="/tmp/HOSP/"))
REGISTRO_PATH = Path(env("REGISTRO_PATH", default="/tmp/DNS/"))

Loading…
Cancel
Save