Skip to main content

Finds unused templates in Django

Project description

# django-unused

[![Build Status](https://travis-ci.org/edustaff/django-unused.svg?branch=master)](https://travis-ci.org/edustaff/django-unused)

Lists all unused templates, views, or media in a Django project.

## Install / Setup ##
First install the package

pip install django-unused

Add to Django `settings.py` file

```python
INSTALLED_APPS = (
...
'django_unused',
...
)
```

## Usage ##

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

## Testing ##
Just run tox.

tox

###### Upload to PyPI ######

Just to remind myself:

python setup.py bdist_wheel --universal
twine upload dist/*


Project details


Release history Release notifications

This version
History Node

0.1.4

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_unused-0.1.4-py2.py3-none-any.whl (16.9 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Mar 30, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page