
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
django-simple-gravatar
Advanced tools
Django Gravatar is a lightweight Django application that allows you to insert a Gravatar image in your templates.
Django Gravatar is a lightweight Django application that allows you to insert a Gravatar image in your templates.
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
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"
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 %}
{% gravatar_url user.email 40 %}
The second one return an HTML img tag.
::
{% gravatar user.email %}
{% gravatar user.email 40 %}
{% gravatar user.email 40 'class="gravatar"' %}
Alexis Couronne alexis.couronne@scopart.fr
FAQs
Django Gravatar is a lightweight Django application that allows you to insert a Gravatar image in your templates.
We found that django-simple-gravatar demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.