profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/vinnyrose/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

un1t/django-cleanup 657

Automatically deletes old file for FileField and ImageField. It also deletes files on models instance deletion.

vinnyrose/bleach 0

An easy, HTML5, whitelisting HTML sanitizer.

vinnyrose/bxslider-4 0

Responsive jQuery content slider

vinnyrose/django 0

The Web framework for perfectionists with deadlines.

vinnyrose/django-cleanup 0

Automatically deletes old file for FileField and ImageField. It also deletes files on models instance deletion.

vinnyrose/django-constance 0

Dynamic Django settings.

vinnyrose/django-email-extras 0

PGP encrypted / multipart templated emails for Django

vinnyrose/django-fluent-contents 0

A widget engine to display various content on Django pages

vinnyrose/django-fluent-pages 0

A flexible, scalable CMS with custom node types, and flexible block content.

vinnyrose/django-forms-builder 0

A Django reusable app providing the ability for admin users to create their own forms.

issue closedun1t/django-cleanup

Support integration with django-reversion

Are there any plans to or an opinion on supporting a deeper integration with django-reversion? E.g. Do not delete files of objects which are under version control but delete them in case the last version referencing this particular file is deleted.

We do need this in our project and I would be happy to contribute any work as a PR.

closed time in 2 months

Flauschbaellchen

issue closedun1t/django-cleanup

PermissionError: There was an exception deleting the file because it is being used by another process

Strange kind of bug i came across.

When initiating a model instance, and then opening it in the admin page as if i were to modify it, simpli saving without making any changes prompts me with the following traceback:

There was an exception deleting the file `logo/6000_4000.webp` on field `accounts.restaurant.logo`
Traceback (most recent call last):

  File "C:\Users\sherzog\web_app\env\lib\site-packages\django_cleanup\handlers.py", line 96, in run_on_commit
    file_.delete(save=False)

  File "C:\Users\sherzog\web_app\env\lib\site-packages\django\db\models\fields\files.py", line 373, in delete
    super().delete(save)

  File "C:\Users\sherzog\web_app\env\lib\site-packages\django\db\models\fields\files.py", line 105, in delete
    self.storage.delete(self.name)

  File "C:\Users\sherzog\web_app\env\lib\site-packages\django\core\files\storage.py", line 304, in delete
    os.remove(name)

PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\sherzog\\web_app\\backend\\media\\logo\\6000_4000.webp'

It seems it is interpreting this as a replacement of the original logo with the same one, or something like this. Should i be worried about this?

closed time in 2 months

ggmblr

issue commentun1t/django-cleanup

Check uniqueness before delete?

This won't be supported in this library directly, as the ability to do this already exists in the django storage backend api.

To override the delete method you can subclass your storage backend (the "GoogleCloudStorage") to change how it names files or how the delete works.

tonypottera24

comment created time in 2 months