This commit is contained in:
reverend 2020-08-30 16:53:58 +02:00
parent 751d4c81fe
commit 2007b512c7

View File

@ -1,11 +1,12 @@
import json import json, os
from importlib import import_module from importlib import import_module
from django.core.cache import cache from django.core.cache import cache
from django.conf import settings from django.conf import settings
from django.template import Library, TemplateSyntaxError 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)) icons_json = json.load(open(icons_json_path))
register = Library() register = Library()