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.2.tar.gz
(1.9 kB
view details)
File details
Details for the file django-cleanup-0.1.2.tar.gz.
File metadata
- Download URL: django-cleanup-0.1.2.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adac98481503f20461fb2a16738d4fb3a582477c36d9747d5f240d3c755e73d4
|
|
| MD5 |
de797ea608d6ebd1b1a552ebf36a3155
|
|
| BLAKE2b-256 |
5cf2753a247466e4b0fd5990c70501223b59c764bc9bd90b8577e19c3ea1b0db
|