from django.conf.urls.defaults import *
from dataplot.bike.models import *
from dataplot.bike.views import *
rides={
'queryset':Ride.objects.all(),
'extra_context':{'objects':Ride.objects},
}
locs={'queryset':Location.objects.all()}
urlpatterns=patterns(
'',
(r'^$','django.views.generic.list_detail.object_list',rides),
(r'^location/(?P<object_id>[0-9]+)/$',
'django.views.generic.list_detail.object_detail',
locs),
(r'^location/(?P<lid1>[0-9]+)/(?P<lid2>[0-9]+)/$',
compare_locations),
)