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.1.tar.gz
(1.9 kB
view details)
File details
Details for the file django-cleanup-0.1.1.tar.gz
.
File metadata
- Download URL: django-cleanup-0.1.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 276fcb61254df60bf1a9e1cdf462717d497eb24f35d7344c93ff6e1118bad008 |
|
MD5 | 071d7961e5456b0c1809aa061e3886db |
|
BLAKE2b-256 | 40e10ca5b584ea81b39c10fae9e6a3d827e39c4e6267a643370807e77c3f5f17 |