A Django app for handling user avatars.
Find a file
Rafiq Hilali 8017d6fc4c
Delete avatars from file storage when avatar is deleted (#174)
* added custom delete method to Avatar model inorder to delete avatars from file storage

* simplified chained expression to pass linting

* linting

* stopped using reserved keyword dir

* changed remove_avatar_images so it deletes all generated avatars

* went back to using queryset delete

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: Johannes Wilm <mail@johanneswilm.org>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-08-14 13:03:45 +02:00
.github/workflows Fix name. 2022-08-12 12:46:27 +02:00
avatar Delete avatars from file storage when avatar is deleted (#174) 2022-08-14 13:03:45 +02:00
docs AVATAR_CLEANUP_DELETED default True, relates to #181 2022-08-14 13:00:53 +02:00
test_proj lint and add pre-commit configuration 2022-08-09 21:17:24 +02:00
tests Add Django for docs rendering. 2022-08-11 10:44:23 +02:00
.coveragerc Fixed migrations path in .coveragerc. 2016-05-26 00:21:38 +05:00
.gitignore coverage==6.2 2022-07-16 23:20:16 +02:00
.pre-commit-config.yaml lint and add pre-commit configuration 2022-08-09 21:17:24 +02:00
CHANGELOG.rst AVATAR_CLEANUP_DELETED default True, relates to #181 2022-08-14 13:00:53 +02:00
CONTRIBUTING.md Update badges 2022-08-09 21:47:07 +02:00
CONTRIBUTORS.txt Update CONTRIBUTORS.txt 2022-08-09 21:55:52 +02:00
LICENSE.txt lint and add pre-commit configuration 2022-08-09 21:17:24 +02:00
MANIFEST.in exclude tests folder from distribution 2022-08-12 07:20:47 +02:00
README.rst lint 2022-08-09 22:07:35 +02:00
setup.py only require Pillow 8.4.0 as that is what is available for Python 3.6 2022-08-10 19:06:25 +02:00

=============
django-avatar
=============

.. image:: https://jazzband.co/static/img/badge.png
   :target: https://jazzband.co/
   :alt: Jazzband

.. image:: https://img.shields.io/pypi/pyversions/django-avatar.svg
   :target: https://pypi.org/project/django-avatar/
   :alt: Supported Python versions

.. image:: https://img.shields.io/pypi/djversions/django-avatar.svg
   :target: https://pypi.org/project/django-avatar/
   :alt: Supported Django versions

.. image:: https://github.com/jazzband/django-avatar/actions/workflows/test.yml/badge.svg
   :target: https://github.com/jazzband/django-avatar/actions/workflows/test.yml

.. image:: https://codecov.io/gh/jazzband/django-avatar/branch/main/graph/badge.svg?token=BO1e4kkgtq
   :target: https://codecov.io/gh/jazzband/django-avatar

.. image:: https://badge.fury.io/py/django-avatar.svg
    :target: https://badge.fury.io/py/django-avatar
    :alt: PyPI badge

.. image:: https://readthedocs.org/projects/django-avatar/badge/?version=latest
    :target: http://django-avatar.readthedocs.org/en/latest/?badge=latest
    :alt: Documentation Status

Django-avatar is a reusable application for handling user avatars.  It has the
ability to default to Gravatar if no avatar is found for a certain user.
Django-avatar automatically generates thumbnails and stores them to your default
file storage backend for retrieval later.

For more information see the documentation at http://django-avatar.readthedocs.org/