Deletes old files.
Project description
# django-cleanup
django-cleanup automatically deletes old file for FileField, ImageField and subclasses,
and it also deletes files on models instance deletion.
## Installation
pip install django-cleanup
## Configuration
Add django_cleanup to settings.py
INSTALLED_APPS = (
...
'django_cleanup', # should go after your apps
)
Warning! django_cleanup should be placed after all your apps. (At least after those apps which need to remove files.)
django-cleanup automatically deletes old file for FileField, ImageField and subclasses,
and it also deletes files on models instance deletion.
## Installation
pip install django-cleanup
## Configuration
Add django_cleanup to settings.py
INSTALLED_APPS = (
...
'django_cleanup', # should go after your apps
)
Warning! django_cleanup should be placed after all your apps. (At least after those apps which need to remove files.)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-cleanup-0.1.5.tar.gz
(2.0 kB
view details)
File details
Details for the file django-cleanup-0.1.5.tar.gz
.
File metadata
- Download URL: django-cleanup-0.1.5.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd51b49fcffde2179e2c25b8cad40650b637f25b1e7447b5b18e74bccc32257b |
|
MD5 | 95c4bdde2374083ed8e8079f4175e91a |
|
BLAKE2b-256 | c5dca7eddccf74519d5e6a9f393e3e5349adbceebba60ac5c1f95c7dac2366cf |