Open trianglesis opened 6 years ago
Exception traceback: http://127.0.0.1:8000/ 1.11.6 KeyError 'icons' C:\Python34\lib\site-packages\svg_icons\readers\icomoon.py in read_source_file, line 33
C:\Python34\lib\site-packages\svg_icons\readers\icomoon.py in read_source_file
data = json.load(open(self.source_file, 'r')) for icon in data['icons']: ... props, icon_data = icon.get('properties'), icon.get('icon')
data | {'alert': {'keywords': ['warning', 'triangle', 'exclamation', 'point']},
Installing from https://octicons.github.com/
Probably because JSON have another key or usual key is absent.
The data.json file doen't contain any SVG Path info, so can be used with django-svg-icons.. However it should be possible to create a new reader class which can read the SVG data from the filesystem icons.
data.json
django-svg-icons
Exception traceback: http://127.0.0.1:8000/ 1.11.6 KeyError 'icons' C:\Python34\lib\site-packages\svg_icons\readers\icomoon.py in read_source_file, line 33
C:\Python34\lib\site-packages\svg_icons\readers\icomoon.py in read_source_file
data | {'alert': {'keywords': ['warning', 'triangle', 'exclamation', 'point']},
Installing from https://octicons.github.com/
Probably because JSON have another key or usual key is absent.