From a77ee9cee43ec01f43bebc71ad64702fa110b475 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 15 Sep 2008 17:43:10 +0100 Subject: Added a mechanism for monkeypatching in debug views, and also added jquery as both a test case and a place to get started making some js improvements. I'm not totally thrilled with this approach -- it feels *very* hackish. The alternative might be to simply require installers to add a line to their ROOT_URLCONF, which wouldn't be *bad*, but I like the "load automatically" part of this thing. --- debug_toolbar/urls.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 debug_toolbar/urls.py (limited to 'debug_toolbar/urls.py') diff --git a/debug_toolbar/urls.py b/debug_toolbar/urls.py new file mode 100644 index 0000000..c8ec7cd --- /dev/null +++ b/debug_toolbar/urls.py @@ -0,0 +1,13 @@ +""" +URLpatterns for the debug toolbar. + +These should not be loaded explicitly; the debug toolbar middleware will patch +this into the urlconf for the request. +""" + +from django.conf.urls.defaults import * +from django.conf import settings + +urlpatterns = patterns('', + url('^__debug__/m/(.*)$', 'debug_toolbar.views.debug_media', name='debug_toolbar_media'), +) \ No newline at end of file -- cgit v1.2.3 From 5fd534e68dbd191c5d6062a39ae512b109cccbdb Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 15 Sep 2008 18:02:17 +0100 Subject: Modified scripts to use jQuery, and moved 'em to a better place. --- debug_toolbar/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'debug_toolbar/urls.py') diff --git a/debug_toolbar/urls.py b/debug_toolbar/urls.py index c8ec7cd..26a5ca2 100644 --- a/debug_toolbar/urls.py +++ b/debug_toolbar/urls.py @@ -9,5 +9,5 @@ from django.conf.urls.defaults import * from django.conf import settings urlpatterns = patterns('', - url('^__debug__/m/(.*)$', 'debug_toolbar.views.debug_media', name='debug_toolbar_media'), + url('^__debug__/m/(.*)$', 'debug_toolbar.views.debug_media'), ) \ No newline at end of file -- cgit v1.2.3