You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 month ago | |
---|---|---|
local_icons | 1 month ago | |
tests | 1 month ago | |
.gitignore | 1 month ago | |
.pre-commit-config.yaml | 1 month ago | |
LICENSE | 1 month ago | |
MANIFEST.in | 1 month ago | |
README.rst | 1 month ago | |
pyproject.toml | 1 month ago | |
setup.cfg | 1 month ago | |
setup.py | 1 month ago |
README.rst
django-local-icons
django-local-icons makes working with icons for your websites way easier.
It provides useful template tags for including SVG- and Webfont-based icons, either from local files or from the web. And with a handy manage script, you can download icons from Iconify framework for self-hosting.
Install
1. Install django-local-icons as you would install a Python package, i.e. with pip, pipenv, Poetry, etc.
Include
local_icons
in yourINSTALLED_APPS
:INSTALLED_APPS = [ ..., # other apps 'local_icons', ]
Load the icons with a template tag:
{% load local_icons %} {# This will include '/static/icons/person_outline.svg' #} {% icon 'person_outline' %}
Check out the docs at https://django-local-icons.readthedocs.io/
Contribute
- Issue tracker: https://codeberg.org/kytta/django-local-icons/issues
Licence
This project is hosted on Codeberg: https://codeberg.org/kytta/django-local-icons