This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Django Gravatar is a lightweight Django application that allows you to insert a Gravatar image in your templates.

Get it

The best way to install Django Gravatar is use easy_install.

easy_install django-simple-gravatar

If you prefer install it from source, grab the git repository from github and run setup.py

$ git clone git://github.com/skitoo/django-gravatar.git
$ cd django-gravatar
$ python setup.py install

Installation

Now Django Gravatar is in your PYTHONPATH. You can add this app in your project settings.py file.

INSTALLED_APPS = (
   # other apps
   'django_gravatar',
)

You can specify a default image url, Gravatar will use it if it cannot find an account associated with the email parameter. In your settings project file add this variable

GRAVATAR_DEFAULT_URL = "http://www.example.com/mydefaultavatar.jpg"

Usage

Now you can use Django Gravatar tag in your templates. First import template tag.

{% load gravatar %}

Django Gravatar offers you two tags. The first one return gravatar image url.

{% gravatar_url user.email %}

# you can pass an optional argument to specify the avatar size. By default size is 80.

{% gravatar_url user.email 40 %}

The second one return an HTML img tag.

{% gravatar user.email %}

# you can also pass an optional size argument here.

{% gravatar user.email 40 %}

# this tag provides another argument to specify <img /> arguments.

{% gravatar user.email 40 'class="gravatar"' %}

Credits

Alexis Couronne <alexis.couronne@scopart.fr>

Release History

Release History

1.0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-simple-gravatar-1.0.1.tar.gz (2.6 kB) Copy SHA256 Checksum SHA256 Source Oct 9, 2012

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting