diff --git a/sigi/apps/home/templatetags/menus.py b/sigi/apps/home/templatetags/menus.py deleted file mode 100644 index 0667247..0000000 --- a/sigi/apps/home/templatetags/menus.py +++ /dev/null @@ -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} diff --git a/sigi/settings.py b/sigi/settings.py index 61c464f..882936b 100644 --- a/sigi/settings.py +++ b/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/"))