diff options
| author | Rob Hudson | 2010-02-11 14:21:27 -0800 |
|---|---|---|
| committer | Rob Hudson | 2010-02-11 14:21:27 -0800 |
| commit | 960d1cf38bb512794a29d0e49d9b7447602861d9 (patch) | |
| tree | aa9abb3cfc897fb5f184e371f33f7b4da8f46014 /example/urls.py | |
| parent | ed74a1c9fcc48855e4f3cb28db55d91fa9d1a089 (diff) | |
| parent | 9327cd86b2c9f1db0108c97e630c6d5610e65b0d (diff) | |
| download | django-debug-toolbar-960d1cf38bb512794a29d0e49d9b7447602861d9.tar.bz2 | |
Merge branch 'master' into js_closure
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}) + ) + |
