API Reference

Views

This section lists documentation for all views available in Django Pydenticon.

django_pydenticon.views.image(request, data)

Generates identicon image based on passed data.

Arguments:

data - Data which should be used for generating an identicon. This data will be used in order to create a digest which is used for generating the identicon. If the data passed is a hex digest already, the digest will be used as-is.

Returns:

Identicon image in raw format.

URL

This section lists documentation for all URL-related functions available in Django Pydenticon.

django_pydenticon.urls.get_patterns(instance='django_pydenticon')

Generates URL patterns for Django Pydenticon application. The return value of this function can be used directly by the django.conf.urls.include function.

Arguments:

instance - Instance namespace that should be assigned to generated URL patterns.

Returns:

Tuple consisting out of URL patterns, instance namespace, and application namespace.