Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 32 lines (24 sloc) 1.068 kB
67db34f @Swizec created base for example for tonight's talk
authored
1 from django.conf.urls import patterns, include, url
2 from django.contrib.staticfiles.urls import staticfiles_urlpatterns
3
4 import settings
5
6 # Uncomment the next two lines to enable the admin:
7 from django.contrib import admin
8 admin.autodiscover()
9
10 urlpatterns = patterns(
11 '',
12 # Examples:
13 # url(r'^$', 'prefetch_vs_related.views.home', name='home'),
14 # url(r'^prefetch_vs_related/', include('prefetch_vs_related.foo.urls')),
15
16 # Uncomment the admin/doc line below to enable admin documentation:
17 # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
18
19 # Uncomment the next line to enable the admin:
20 url(r'^admin/', include(admin.site.urls)),
21 url(r'^assets/(?P<path>.*)$', 'django.views.static.serve',
22 {'document_root': settings.STATIC_DOC_ROOT,
23 'show_indexes': True}),
24
25 url(r'^$', 'talk_example.views.home'),
99661a4 @Swizec example finished
authored
26 url(r'^first/', 'talk_example.views.first'),
67db34f @Swizec created base for example for tonight's talk
authored
27 url(r'^prefetch/', 'talk_example.views.prefetch'),
28 url(r'^select/', 'talk_example.views.select'),
29 )
30
31 urlpatterns += staticfiles_urlpatterns()
Something went wrong with that request. Please try again.