Searches and removes unused media files.
Project description
Searches and removes unused media files.
Installation
Install
pip install django-media-cleaner
Add to settings.py
INSTALLED_APPS = (
...
'django_media_cleaner',
...
)
Usage
To find all unused media files, run command:
./manage.py find_unused_media
To remove them:
./manage.py find_unused_media --delete
How to run tests
python -m venv venv
source venv/bin/activate
pip install -r tests/requirements.txt
pip install -e .
py.test
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
Built Distribution
File details
Details for the file django-media-cleaner-0.1.1.tar.gz
.
File metadata
- Download URL: django-media-cleaner-0.1.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8caf9e83c867f08696c7b0ec8271c8e53d8060423a6d27117a18faaf3c718327 |
|
MD5 | 1436687d044dc33952c17e6e3bd1f3cd |
|
BLAKE2b-256 | fb1c0c42466d1c99e5dd97d31f4cf2d2a60ee62f797a8a18501c9e2b72b9ec84 |
File details
Details for the file django_media_cleaner-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: django_media_cleaner-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 676f181634fccdadbe33632477c63d824b2a270e85fb0c62c7fcaa20160e3655 |
|
MD5 | d3e5c6e073989272fb1fb7efa06c4ad8 |
|
BLAKE2b-256 | d2eae095552ec71689ee04e33706ecc42dea42884765164f5ce1c5d94be7a0bd |