Welcome to Flask-Avatar’s documentation!¶
It’s easy to generate avatar for flask.
1.1 Installation¶
To install Flask-Avatar:
pip install flask-avatar
Or alternatively, you can download the repository and install manually by doing:
git clone git@github.com:honmaple/flask-avatar.git
cd flask-avatar
python setup.py install
1.2 Usage¶
from flask_avatar import Avatar
[...]
Avatar(app)
Templates:
{{ url_for('avatar',text = user.username )}}