django-debug-toolbar/django-debug-toolbar — pull request #268 by danfairs (2012-03-14 13:26:20+00:00)
Title: Don't explode if a project uses tuple'd urlpatterns

This fixes https://github.com/django-debug-toolbar/django-debug-toolbar/issues/235. The toolbar will now work correctly if the Django project's urlpatterns are a tuple, rather than a list.

(We do this because we have lots of apps that re-use another app's URLConf - we tuple-ise the urlpatterns to avoid those apps accidentally mutating the base app's URLs.)