00001 from django.conf.urls.defaults import *
00002 from dataplot.bike.models import *
00003 from dataplot.bike.views import *
00004
00005 rides={
00006 'queryset':Ride.objects.all(),
00007 'extra_context':{'objects':Ride.objects},
00008 }
00009
00010 locs={'queryset':Location.objects.all()}
00011
00012
00013 urlpatterns=patterns(
00014 '',
00015 (r'^$','django.views.generic.list_detail.object_list',rides),
00016 (r'^location/(?P<object_id>[0-9]+)/$',
00017 'django.views.generic.list_detail.object_detail',
00018 locs),
00019 (r'^location/(?P<lid1>[0-9]+)/(?P<lid2>[0-9]+)/$',
00020 compare_locations),
00021 )