Skip to main content

Finds unused templates in Django

Project description

# django-unused

[![Build Status](https://travis-ci.org/ticalcster/django-unused.svg?branch=master)](https://travis-ci.org/ticalcster/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


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

django_unused-0.1.3-py2.py3-none-any.whl (16.6 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page