Get’s a gravatar for a e-mail address.
Arguments
Defines what should be displayed if no image is found for this user. Optional argument which defaults to identicon. The argument can be a URI to an image or one of the following options:
- 404
- Do not load any image if none is associated with the email hash, instead return an HTTP 404 (File Not Found) response.
- mm
- Mystery-man, a simple, cartoon-style silhouetted outline of a person (does not vary by email hash).
- identicon
- A geometric pattern based on an email hash.
- monsterid
- A generated ‘monster’ with different colors, faces, etc.
- wavatar
- Generated faces with differing features and backgrounds
Redirect user after successfull signin.
First looks for a requested_redirect. If not supplied will fallback to the user specific account page. If all fails, will fallback to the standard Django LOGIN_REDIRECT_URL setting. Returns a string defining the URI to go next.
Keyword Arguments
Generates a sha1 hash for supplied string. Doesn’t need to be very secure because it’s not used for password checking. We got Django for that.
Returns a tuple containing the salt and hash.
Arguments
Keyword arguments