aboutsummaryrefslogtreecommitdiffstats
path: root/example/urls.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/urls.py')
-rw-r--r--example/urls.py20
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})
+ )
+