Menu

[r27]: / trunk / bike / urls.py  Maximize  Restore  History

Download this file

22 lines (17 with data), 541 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
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),
)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.