From 2007b512c7338d154ee3336d1898325681ad9960 Mon Sep 17 00:00:00 2001 From: reverend Date: Sun, 30 Aug 2020 16:53:58 +0200 Subject: [PATCH] Bugfix --- lostplaces/lostplaces_app/templatetags/svg_icon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lostplaces/lostplaces_app/templatetags/svg_icon.py b/lostplaces/lostplaces_app/templatetags/svg_icon.py index 7090b6c..beb0038 100644 --- a/lostplaces/lostplaces_app/templatetags/svg_icon.py +++ b/lostplaces/lostplaces_app/templatetags/svg_icon.py @@ -1,11 +1,12 @@ -import json +import json, os from importlib import import_module from django.core.cache import cache from django.conf import settings from django.template import Library, TemplateSyntaxError -icons_json_path = getattr(settings, 'SVG_ICONS_SOURCE_FILE') +#icons_json_path = getattr(settings, 'SVG_ICONS_SOURCE_FILE') +icons_json_path = os.path.join(settings.BASE_DIR, 'lostplaces_app', 'static', 'icons', 'icons.icomoon.json') icons_json = json.load(open(icons_json_path)) register = Library()