def gravatar(email, default_avatar_url=settings.DEFAULT_AVATAR_URL, size=175, rating='pg'):
 url = GRAVATAR_URL.format(emaildigest=md5(email).hexdigest())
 url = urlparams(url, d=utils.absolutify(default_avatar_url), s=size, r=rating)
 return url

def gravatar ( email , default_avatar_url = settings . DEFAULT_AVATAR_URL , size = 175 , rating = 'pg' ) : url = GRAVATAR_URL . format ( emaildigest = md5 ( email ) . hexdigest ( ) ) url = urlparams ( url , d = utils . absolutify ( default_avatar_url ) , s = size , r = rating ) return url
hacked from djangosnippets .