<filename>data/test/python/9a6155df04431115548aa4ecb885ac758f53b8fdurls.py<gh_stars>10-100
from django.conf.urls import patterns, include, url

from django.contrib import admin
import idb.api as api
from idb.views import home, player, team, year, team_abbr, players, teams, years, client, sql, search
admin.autodiscover()
import logging
log = logging.getLogger(__name__)

urlpatterns = patterns('',
    url(r'^$', home),
    url(r'^players/$', players),
    url(r'^teams/$', teams),
    url(r'^years/$', years),
    url(r'^players/(\d*)/$', player),
    url(r'^teams/(\d*)/$', team),
    url(r'^teams/([A-Za-z]{3})/$', team_abbr),
    url(r'^years/(\d{4})/$', year),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^client/$', client),
    url(r'^sql/$', sql),
    #API URLS       
    url(r'^api/players/(\d*)/years/(\d*)$', api.player_year),
    url(r'^api/players/(\d*)/years$', api.player_years),
    url(r'^api/players/(\d*)/$', api.player),
    url(r'^api/players/$', api.players),
    url(r'^api/teams/(\d*)/years/(\d*)$', api.team_year),
    url(r'^api/teams/(\d*)/years$', api.team_years),
    url(r'^api/teams/(\d*)/$', api.team),
    url(r'^api/teams/$', api.teams),
    url(r'^api/years/(\d*)/$', api.year),
    url(r'^api/years/$', api.years),
    url(r'^api/search/([ a-zA-Z0-9\%]+)/$', api.search),
    
    #Search
    url(r'^search/', search)

)

