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.3.tar.gz
(2.0 kB
view details)
File details
Details for the file django-cleanup-0.1.3.tar.gz
.
File metadata
- Download URL: django-cleanup-0.1.3.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4c2da03c347b19e89cad6d88819a1048d50a02bf0d7a82d01438d6e0d8a1e77 |
|
MD5 | a8f4e806abd26593a678456b65d77cb4 |
|
BLAKE2b-256 | 1b638af5a9a8599df7d5b017446b114fdfe58e4782d61831827110232f18402a |