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
Close
Hashes for django-media-cleaner-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8caf9e83c867f08696c7b0ec8271c8e53d8060423a6d27117a18faaf3c718327 |
|
MD5 | 1436687d044dc33952c17e6e3bd1f3cd |
|
BLAKE2b-256 | fb1c0c42466d1c99e5dd97d31f4cf2d2a60ee62f797a8a18501c9e2b72b9ec84 |
Close
Hashes for django_media_cleaner-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 676f181634fccdadbe33632477c63d824b2a270e85fb0c62c7fcaa20160e3655 |
|
MD5 | d3e5c6e073989272fb1fb7efa06c4ad8 |
|
BLAKE2b-256 | d2eae095552ec71689ee04e33706ecc42dea42884765164f5ce1c5d94be7a0bd |