Thursday, January 27, 2011

Re: Is there a tool to check which views are used?

Hi,

> I have inherited an old project which I believe has unused views
> (useless code), does anyone know of a tool to check which views are
> being used? I think it shouldn't be too hard to make one using resolve
> but maybe there is one already or maybe I'm talking nonsense.
> It doesn't have tests, so I can't check the coverage or find data
> from there.
The django-extensions
(https://github.com/django-extensions/django-extensions) app provide a
command to get all urls from a project, maybe that is a good starting
point :

./manage.py show_urls

hth
Sven

--
http://djangopeople.net/thejester/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment