Lists all unused templates, views, or media in a Django project.
First install the package
pip install django-unused
Add to Django settings.py
file
INSTALLED_APPS = (
...
'django_unused',
...
)
django-unused creates a management command unused
.
The command has three basic sub commands: templates
, views
, and media
unused templates
: A semantic personal publishing platform
templates
python manage.py unused templates
views
python manage.py unused views
media (currently not implemented)
python manage.py unused media
Just run tox.
tox
Just to remind myself:
python setup.py bdist_wheel --universal
twine upload dist/*