I\'ve started working on a project with loads of unused legacy code in it. I was wondering if it might be possible to use a tool like coverage in combination with a crawler
pylint is great tool for static code analysis (among others things it will detect unused imports, variables or arguments).
You can run the development server under coverage if you use the --noreload switch:
coverage run ./manage.py runserver --noreload