diff options
| author | Rob Hudson | 2010-02-11 14:19:30 -0800 | 
|---|---|---|
| committer | Rob Hudson | 2010-02-11 14:19:30 -0800 | 
| commit | 9327cd86b2c9f1db0108c97e630c6d5610e65b0d (patch) | |
| tree | 30244cedcf7daf60e6540a75d6875546832232cc /example/urls.py | |
| parent | 98d919189d5b25057cb0cb7ee486a591a1f6cead (diff) | |
| download | django-debug-toolbar-9327cd86b2c9f1db0108c97e630c6d5610e65b0d.tar.bz2 | |
Added example project directory.
Currently this allows for easy manual testing a few other Javascript libraries
and whether the debug toolbar javascript conflicts with them.
Diffstat (limited to 'example/urls.py')
| -rw-r--r-- | example/urls.py | 20 | 
1 files changed, 20 insertions, 0 deletions
| diff --git a/example/urls.py b/example/urls.py new file mode 100644 index 0000000..25acc31 --- /dev/null +++ b/example/urls.py @@ -0,0 +1,20 @@ +from django.conf import settings +from django.conf.urls.defaults import * +from django.contrib import admin +from django.views.generic.simple import direct_to_template + +admin.autodiscover() + +urlpatterns = patterns('', +    (r'^$', direct_to_template, {'template': 'index.html'}), +    (r'^jquery/index/$', direct_to_template, {'template': 'jquery/index.html'}), +    (r'^mootools/index/$', direct_to_template, {'template': 'mootools/index.html'}), +    (r'^prototype/index/$', direct_to_template, {'template': 'prototype/index.html'}), +    (r'^admin/', include(admin.site.urls)), +) + +if settings.DEBUG: +    urlpatterns += patterns('', +        (r'^media/(.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}) +    ) + | 
