Spectre css Docs
https://picturepan2.github.io/spectre/index.html
# install from github
git clone https://github.com/Bit03/django-spectre.git
cd django-spectre
python setup.py installAdd to INSTALL_APPS in your settings.py
INSTALLED_APPS = [
...
'spectre',
]
# spectre config
#
# -------------------------------------------------
SPECTRE_DEFAULTS = {
"css_url": {
"url": "https://unpkg.com/spectre.css/dist/spectre.min.css"
},
}
-
spectre avatar
add spectre tags in your django template
{% load spectre_tags %} {% spectre_avatar '<avatar_url>' '<size>' %}