From 17e7a8babf93feb65327db8898b2494c6b490d08 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mon, 23 Apr 2012 18:37:55 +0200 Subject: Add integration with gravatar in the template and adjust documentation --- README | 1 + settings.py | 1 + templates/message.html | 3 ++- templates/month_view.html | 5 +++-- templates/recent_activities.html | 5 +++-- templates/search.html | 5 +++-- templates/thread.html | 5 +++-- 7 files changed, 16 insertions(+), 9 deletions(-) diff --git a/README b/README index 82e8a9b..c6ae0a9 100644 --- a/README +++ b/README @@ -37,6 +37,7 @@ easy_install bunch easy_install pymongo # easy_install urlgrabber -- no used for the moment easy_install djangorestframework +easy_install django-gravatar # Install pymongo and the mongodb database sudo yum install mongodb-server diff --git a/settings.py b/settings.py index bb1d2c1..280148f 100644 --- a/settings.py +++ b/settings.py @@ -131,6 +131,7 @@ INSTALLED_APPS = ( # 'django.contrib.admindocs', 'mongodb', 'djangorestframework', + 'gravatar', ) # A sample logging configuration. The only tangible logging diff --git a/templates/message.html b/templates/message.html index 813886e..5e41326 100644 --- a/templates/message.html +++ b/templates/message.html @@ -1,4 +1,5 @@ {% extends "base_message.html" %} +{% load gravatar %} {% block title %}{{ app_name }}{% endblock %} @@ -17,7 +18,7 @@