Menu

[r190]: / trunk / soccer / urls.py  Maximize  Restore  History

Download this file

16 lines (14 with data), 497 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
from django.conf.urls.defaults import *
from dataplot.soccer.models import *
from django.views.generic.simple import direct_to_template
urlpatterns = patterns(
'dataplot.soccer.views',
(r'^$',direct_to_template,{
'template':'soccer/index.html',
'extra_context':{'game':Game.objects.get_latest},
}),
(r'^(?P<model>[a-z]+)s/(?P<order_by>[a-z_]+)/$','olist'),
(r'^(?P<model>[a-z]+)/(?P<key>[\w-]+)/$','odetail'),
(r'^plots/$','plots'),
(r'^export/$','export'),
)
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.