blob: 8342ef85df5506d02b67322d02e9853cd1e9fa1d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
A lightweight django-gravatar app. Includes helper methods for interacting with
gravatars outside of template code.
Use in code:
from django_gravatar.helpers import get_gravatar_url, has_gravatar, get_gravatar_profile_url, calculate_gravatar_hash
url = get_gravatar_url('alice@example.com', size=150)
gravatar_exists = has_gravatar('bob@example.com')
profile_url = get_gravatar_profile_url('alice@example.com')
email_hash = calculate_gravatar_hash('alice@example.com')
|