Integrating with Gravatar is very easy

1) Get MD5 hash of user's email id
 import hashlib

   def getMD5(self):
          m = hashlib.md5()
          m.update(self.user.email)
         return m.hexdigest()

2) and prepare image url as below
     <img src="http://www.gravatar.com/avatar/{{user-email-MD5-
hash}}.jpg" alt="" />


that's it the image shows the gravatar of respective user.


--rama




On May 14, 4:30 pm, Joshua Partogi <joshua.j...@gmail.com> wrote:
> Dear all
>
> Does anybody know a good django application for gravatar 
> (http://gravatar.com) ?
>
> Thank you very much for the redirection.
>
> :-)
>
> --
> If you can't believe in God the chances are your God is too small.
>
> Read my blog:http://joshuajava.wordpress.com/
> Follow us on twitter:http://twitter.com/scrum8
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to